# Change Document Options

Document options control display elements such as window size, zoom settings, margin size, and scaling. Options are defined for each file type category (for example, spreadsheets, multimedia, and word processing). The document options only apply to the current document and document type. In other words, it initializes the in-memory options of the current Viewer. The options are defined in `kwoption.h`.

To set options for a document

1. Create an ALL_OPTIONS_EX structure.

2. If you are using the `VAPIMWP_INIT_OPEN_DOCUMENT` message to set options, create a TPVAPIOpenDocumentInfo structure.

3. Use either the VAPIMWP_OPTIONS_SETOPTIONS_EX or VAPIMWP_INIT_OPEN_DOCUMENT message.

To get the options of a document, use the VAPIMWP_OPTIONS_GETOPTIONS_EX message.

© Copyright 2016-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm