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.

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
protected virtual void OnDocumentStarting()
Visual Basic
Protected Overridable Sub 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.

See Also