PowerTools ActiveReports for .NET 9.0J
State プロパティ (SectionReport)
使用例 

現在レポートが、実行中、アイドル状態、完了、キャンセルのいずれかの状態にあるかを返します。
構文
'宣言
 
Public ReadOnly Property State As SectionReport.ReportState
public SectionReport.ReportState State {get;}

プロパティ値

現在のレポートの状態。

解説

このプロパティが返す値は、InProgress、Idle、Completedのいずれかです。

使用例
private void viewer1_Load(object sender, System.EventArgs e)
{
    rptGrapeCity rpt = new rptGrapeCity();
    this.statusBar1.Text = "Report is " + rpt.State.ToString();
    rpt.Run();
    this.statusBar1.Text = "Report is " + rpt.State.ToString();
    this.viewer1.Document = rpt.Document;
}
Private Sub Viewer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Viewer1.Load
    Dim rpt As New SectionReport1
    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
参照

関連項目

SectionReport クラス
SectionReport メンバ

 

 


©2003-2015 GrapeCity inc. All rights reserved.