Visual Basic (Declaration) | |
---|---|
Public ReadOnly Property Document As SectionDocument |
C# | |
---|---|
public SectionDocument Document {get;} |
Property Value
Generated Document object, null if the report has not been executed.The SectionDocument class is in the GrapeCity.ActiveReports.Document.v7 assembly in the GrapeCity.ActiveReports.Document namespace.
C# | Copy Code |
---|---|
private void formReport_Load(object sender, System.EventArgs e) { rptMain rpt = new rptMain(); this.viewer1.Document = rpt.Document; rpt.Run(); } |
Visual Basic | Copy Code |
---|---|
Private Sub formReport_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim rpt As New rptMain() Viewer1.Document = rpt.Document rpt.Run() End Sub |