ActiveReports Developer 7
Run(Boolean) Method
See Also  Example
GrapeCity.ActiveReports.v7 Assembly > GrapeCity.ActiveReports Namespace > SectionReport Class > Run Method : Run(Boolean) Method

syncDocument
Set to True to synchronize a linked viewer control document with the report processing.

Glossary Item Box

Starts report execution and optionally keeps any linked viewer control document in sync with the report's document.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Run( _
   ByVal syncDocument As System.Boolean _
) 
C# 
public void Run( 
   System.bool syncDocument
)

Parameters

syncDocument
Set to True to synchronize a linked viewer control document with the report processing.

Remarks

If the report document is linked to a viewer control the report will synchronize the viewer display and load pages as soon as they have completed rendering.

Example

C#Copy Code
private void Form1_Load(object sender, System.EventArgs e)
{
    SectionReport1 rpt = new SectionReport1();
    rpt.Run(True);
    viewer1.Document = rpt.Document;
}
Visual BasicCopy Code
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load    
    Dim rpt As New rptMain()
    rpt.Run(True)
    Viewer1.Document = rpt.Document
End Sub

See Also