On Open Document

When it is launched

The script is launched upon opening a document in the document editor (when opening a new document window or going to a new document).

When the script is launched, all windows inside the document editor are already created.

Parameters

Name Type Access Description
Context IDocumentEditor Read/write The document editor

Note: Closing the document from this script is not allowed. Using the command DocumentEditor.TaskWindow.CloseEditorWindow(); will cause the error message:

"System.Runtime.InteropServices.COMException (0x80004005): Document editor cannot be closed."

25.05.2023 7:55:02

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.