ActiveReports 19 .NET Edition
MESCIUS.ActiveReports Assembly / GrapeCity.ActiveReports Namespace / SectionReport Class / Run Method / Run() Method
Example

In This Topic
    Run() Method
    In This Topic
    Starts the report processing in blocked mode. 
    Syntax
    'Declaration
     
    Public Overloads Sub Run() 
    public void Run()
    Exceptions
    ExceptionDescription
    Thrown if a component cannot be licensed.
    Thrown if something is wrong with the report structure.
    Remarks
    This method does not synchronize a viewer control's linked document until the report has finished processing.
    Example
    private void Form1_Load(object sender, System.EventArgs e)
    {
        SectionReport1 rpt = new SectionReport1();
        rpt.Run();
        viewer1.LoadDocument(rpt.Document);
    }
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load    
        Dim rpt As New rptMain()
        rpt.Run()
        Viewer1.LoadDocument(rpt.Document)
    End Sub
    See Also