ActiveReports6 Assembly > DataDynamics.ActiveReports Namespace > ActiveReport Class : Cancel Method |
private void rptDataDynamics_ReportStart(object sender, System.EventArgs eArgs) { if (this.DataSource==null) { this.Cancel(); } }
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
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