# 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.

_FT_HTML5_bannerTitle.htm