The OPENMode property specifies the behavior of the Open method.





0 – Default open, generates a formatted view of the document if the document format is supported.

1 – Open with a text view of the document.

2 – Open without generating a view. This is useful when, for example, you want to print a document without viewing it.

3 – Open with a text view of the document automatically when the document is an unsupported format.

5 – Open the file with indexing enabled. This generates text buffer events.

6 – Open the file for indexing only. This generates text buffer events with document viewing disabled. To get text buffer events in this mode, you need to call the GetNextTextBuffer method—except for the first text buffer).

7 – Open the file with drawing methods and properties enabled.

8 – Open the files with revision marks enabled.