ActiveReports3 Request technical support
NoData Event
See Also  Example


Raised if the report's data source does not return any records and there is no data to be processed.

Syntax

Visual Basic (Declaration) 
Public Event NoData() As EventHandler
Visual Basic (Usage)Copy Code
Dim instance As ActiveReport3
Dim handler As EventHandler
 
AddHandler instance.NoData, handler
C# 
public event EventHandler NoData()

Example

C#Copy Code
private void rptDataDynamics_NoData(object sender, System.EventArgs eArgs)
{
   
this.Cancel();
}
Visual BasicCopy Code
Private Sub rptDD_NoData(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.NoData
    Me.Cancel()
End Sub

Remarks

This event is used either to cancel the report or to print a page with a message informing the user that the report did not return any records to print.

See Also