ComponentOne FlexReport for WinForms
OnNoData Property

C1.Win.FlexReport.4 Assembly > C1.Win.FlexReport Namespace > C1FlexReport Class : OnNoData Property
Gets or sets the VBScript that is executed when the report starts rendering and its source recordset is empty.
Syntax
'Declaration
 
Public Property OnNoData As System.String
public System.string OnNoData {get; set;}
Remarks

The control also fires the NoData event at this time.

The difference between the regular event and the VBScript property is that the handler for the regular event belongs to the application, and should thus be used to support tasks that are independent of the report. For example, to cancel rendering reports with no data.

The VBScript handler in the property belongs to the report, and will be executed regardless of the application. For example, a report might contain a VBScript handler that changes the value of a field when the source recordset is empty.

See Also

Reference

C1FlexReport Class
C1FlexReport Members