PrintDocument for WinForms | ComponentOne
C1.PrintDocument.6 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / OnDocumentStarting Method

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