C1.WPF.PrintDocument.4.6.2 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / OnDocumentStarting Method

In This Topic
OnDocumentStarting Method
In This Topic
Called when the document is starting to generate. Raises the DocumentStarting event. The BusyState property is set to BusyStateEnum.Generating after this method returns. See remarks for more details.
Syntax
'Declaration
 
Protected Overridable Sub OnDocumentStarting() 
 
Remarks
The following order is observed before and after the document generation:
  1. Raises the DocumentStarting event.
  2. BusyState changed to BusyStateEnum.Generating.
  3. Executes the DocumentStartingScript script.
  4. ... document's generation ...
  5. Executes the DocumentEndedScript script.
  6. BusyState changed to BusyStateEnum.Ready.
  7. Raises the DocumentEnded event.
See Also