<< Click to Display Table of Contents >> BeforeOpenFile Event - Python |
![]() ![]() ![]() |
Is fired when the user clicked the Open File button in the toolbar (or pushed the corresponding key).
integer BeforeOpenFile()
Remarks:
The event handler should return:
Value |
Description |
0 |
continue operation |
1 |
cancel the event, i.e. deny that the file open dialog will be shown. Cancelling the operation allows you to display your own open dialog and to import or create your own document, for example from a database via a memory stream. |