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.C1PreviewAssembly: 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:
- OnDocumentStarting()()()()Raises the DocumentStarting event.
- BusyState = GeneratingBusyState changed to Generating.
- ExecuteDocumentStartingScript()()()()Executes the DocumentStartingScript script.
- ... document's generation ...
- ExecuteDocumentEndedScript()()()()Executes the DocumentEndedScript script.
- BusyState = ReadyBusyState changed to Ready.
- OnDocumentEnded()()()()Raises the DocumentEnded event.