See Also

ActiveReport Class  | ActiveReport Members  | Stop

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

Cancel Method

Cancels the report's processing. Any rendered pages will be cleared from the report's Document object.

[Visual Basic]
Public Sub Cancel()
[C#]
public void Cancel();

Remarks

You can call this method based on a user's request or in a report event such as ReportStart to prevent printing a blank report if their data source did not return any records.

Example

[C#] 

private void rptDataDynamics_ReportStart(object sender, System.EventArgs eArgs) 

    if (this.DataSource==null) 
    { 
        this.Cancel(); 
    } 
}

[Visual Basic] 

Private Sub rptDD_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

See Also

ActiveReport Class  | ActiveReport Members  | Stop

 

 


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