ActiveReports3 Request technical support
State Property
See Also  Example


Returns the current state of the report.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property State As ActiveReport3.ReportState
Visual Basic (Usage)Copy Code
Dim instance As ActiveReport3
Dim value As ActiveReport3.ReportState
 
value = instance.State
C# 
public ActiveReport3.ReportState State {get;}

Return Value

Current ReportState.

Example

C#Copy Code
private void arv_Load(object sender, System.EventArgs e)
{
   rptDataDynamics rpt =
new rptDataDynamics();
   
this.statusBar1.Text = "Report is " + rpt.State.ToString();
   rpt.Run();
   
this.statusBar1.Text = "Report is " + rpt.State.ToString();
   
this.arv.Document = rpt.Document;
}
Visual BasicCopy Code
Private Sub Viewer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Viewer1.Load
    Dim rpt As New rptDD
    Me.StatusBar1.Text = "Report is " & rpt.State.ToString
    rpt.Run()
    Me.StatusBar1.Text = "Report is " & rpt.State.ToString
    Me.Viewer1.Document = rpt.Document
End Sub

Remarks

The possible values for this property are Running, Idle, or Completed.

See Also