PowerTools ActiveReports for .NET 9.0J
Cancel メソッド (SectionReport)
使用例 

レポートの処理をキャンセルします。描画されたページはすべてレポート Document から削除されます。
構文
'宣言
 
Public Sub Cancel() 
public void Cancel()
解説

このメソッドは、ユーザーの要求によって呼び出したり、ReportStartなどのイベントで呼び出して、データソースがレコードを返さないときに空のレポートが印刷されないようにします。

使用例
private void rpt_ReportStart(object sender, System.EventArgs eArgs)
{
    if (this.DataSource==null)
    {
        this.Cancel();
    }
}
Private Sub rpt_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
    If Me.DataSource Is Nothing Then
        Me.Cancel()
    End If
End Sub
参照

関連項目

SectionReport クラス
SectionReport メンバ
Stop メソッド

 

 


©2003-2015 GrapeCity inc. All rights reserved.