ActiveReports3 Request technical support
IsDirty Property
See Also  Example


Sets or returns the current state of the report layout.  This property is set to True when any changes are made to the report layout since it was last saved.

Syntax

Visual Basic (Declaration) 
Public Property IsDirty As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ActiveReport3
Dim value As Boolean
 
instance.IsDirty = value
 
value = instance.IsDirty
C# 
public bool IsDirty {get; set;}

Example

NOTE:  The following is incomplete code.  You would need to add your own code to handle the user's answer via the MessageBox.
C#Copy Code
private void mnuExit_Click(object sender, System.EventArgs e)
{
   
if (this.ardMain.Report.IsDirty == True)
   {
       MessageBox.Show (
"Do you want to save your report?");
   }
   
else
   {
       
this.Close();
   }
}
Visual BasicCopy Code
Private Sub mnuExit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles mnuExit.Click
    If ardMain.Report.IsDirty Then
        MessageBox.Show("Would you like to save your report?")
    Else
        Me.Close()
    End If
End Sub

Remarks

This property is typically used by the End-User Report Designer control to determine whether the current report layout needs to be saved.

See Also