Opens a previously saved document using additional context information to control how the file is opened. This method allows opening a specific version or state of a document based on the provided context, such as a timestamp that identifies a particular point in the document's history.
"documents_var" is a variable referencing a Documents object. |
"documents_var" is a variable referencing a Documents object. |
| Type | Description |
| Document | Returns the open document or null if the open failed. |
| Name | Type | Description |
| dataFile | DataFile | The item to open. |
| fileOpenContext | FileOpenContext | The additional context information about the file to open. This is obtained by using the create method on the FileOpenContext object. |
| visible | boolean | Specifies if the document should be opened visibly or not. This is an optional argument whose default value is True. |
| Name | Description |
| File Open Sample | Demonstrates how to open files using the Open API and OpenUsingContext API. The sample shows how to open a file at the tip (latest version) and how to open historical versions of a file. It uses the Open API to open files at tip and iterate through historical versions, and the OpenUsingContext API to open file using FileOpenContext . |