ActiveReports 16 .NET Edition
GrapeCity.ActiveReports Assembly / GrapeCity.ActiveReports Namespace / SectionReport Class / Run Method
Example

In This Topic
    Run Method (SectionReport)
    In This Topic
    Starts the report processing.
    Overload List
    OverloadDescription
    Starts the report processing in blocked mode.   
    Starts report execution and optionally keeps any linked viewer control document in sync with the report's document.  
    Remarks
    Once the report is completed, the Document property is set to the report output Document.  You can use the Document to Print, Preview or Export the output.
    Example
    private void formReport_Load(object sender, System.EventArgs e)
    {
        SectionReport1 rpt = new SectionReport1();
        rpt.Run();
        viewer1.Document = rpt.Document;
    }
    Private Sub formReport_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load    
        Dim rpt As New rptMain()
        rpt.Run()
        Viewer1.Document = rpt.Document
    End Sub
    See Also