See Also

ActiveReport Class  | ActiveReport Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

IsDirty Property

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.

[Visual Basic]
Public Property IsDirty As Boolean
[C#]
public bool IsDirty {get; set;}

Remarks

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

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#] 

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 Basic] 

Private Sub mnuExit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles mnuExit.Click
    If ardMain.Report.IsDirty Then
        MsgBox("Would you like to save your report?")
    Else
        Me.Close()
    End If
End Sub

See Also

ActiveReport Class  | ActiveReport Members

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.