[]
        
(Showing Draft Content)

C1.C1Preview.C1PrintDocument.OnDocumentStarting

OnDocumentStarting Method

OnDocumentStarting()

Called when the document is starting to generate. Raises the DocumentStarting event. The BusyState property is set to Generating after this method returns. See remarks for more details.

Declaration
protected virtual void OnDocumentStarting()
Remarks

The following order is observed before and after the document generation:

  1. OnDocumentStarting()Raises the DocumentStarting event.
  2. BusyState = GeneratingBusyState changed to Generating.
  3. ExecuteDocumentStartingScript()Executes the DocumentStartingScript script.
  4. ... document's generation ...
  5. ExecuteDocumentEndedScript()Executes the DocumentEndedScript script.
  6. BusyState = ReadyBusyState changed to Ready.
  7. OnDocumentEnded()Raises the DocumentEnded event.