ActiveReports 8
Cancel Method
See Also  Example
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports Namespace > SectionReport Class : Cancel Method

Glossary Item Box

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


Visual Basic (Declaration) 
Public Sub Cancel() 
public void Cancel()


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.


C#Copy Code
private void rpt_ReportStart(object sender, System.EventArgs eArgs)
    if (this.DataSource==null)
Visual BasicCopy Code
Private Sub rpt_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
    If Me.DataSource Is Nothing Then
    End If
End Sub


Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also