Contents
- Index
- Previous
- Next
NewDocument method
Declaration
function NewDocument: Boolean;
Description
Clears the existing document and creates a new document.
The method is synchronous. While a document is initializing, the Busy property is set to True. When the document has finished initializing, the OnNewDocument event is fired and the Busy property is set to False. You must wait until the document is done initializing before attempting to manipulate the document or get its current properties.
Returns True on success. Returns False on failure.