int OpenDocumentInDefaultViewer (const char documentFilename[], int windowDisplay);
Opens a document in its default viewer. This function has the same effect as double–clicking a document in Windows Explorer.
You can register file types and their default viewers in Windows Explorer by selecting the File Types tab in the Folder Options dialog box.
| Input | ||
| Name | Type | Description |
| documentFilename | const char [] | The full path to the document that you want to open. |
| windowDisplay | integer | Specifies how the document will be opened. |
| Name | Type | Description |
| status | integer | Returns 0 if the function succeeds. Otherwise, returns a toolbox error code. |