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

レポートレイアウトの現在の状態を取得または設定します。このプロパティは、レポートレイアウトが最後に保存されてから、何らかの変更が加えられたときにTrueに設定されます。
構文
'宣言
 
Public Property IsDirty As Boolean
public bool IsDirty {get; set;}
解説

通常、このプロパティは、エンドユーザーレポートデザイナから、現在のレポートレイアウトの保存が必要かどうかを判断するために使用されます。

使用例
注意:このコードは、完全なコードではありません。通常は、メッセージボックスの戻り値を判断するコードを追加する必要があります。
private void mnuExit_Click(object sender, System.EventArgs e)
{
    if (((GrapeCity.ActiveReports.SectionReport)this.reportdesigner.Report).IsDirty == true)
    {
        MessageBox.Show("Do you want to save your report?");
    }
    else
    {
        this.Close();
    }
}
Private Sub mnuExit_Click(sender As Object, e As System.EventArgs)
	If DirectCast(Me.reportdesigner.Report, GrapeCity.ActiveReports.SectionReport).IsDirty = True Then
		MessageBox.Show("Do you want to save your report?")
	Else
		Me.Close()
	End If
End Sub
参照

関連項目

SectionReport クラス
SectionReport メンバ

 

 


©2003-2015 GrapeCity inc. All rights reserved.