FlexReport for WPF | ComponentOne
C1.WPF.FlexReport.4.6.2 Assembly / C1.WPF.FlexReport Namespace / C1FlexReport Class / OnError Property

In This Topic
    OnError Property (C1FlexReport)
    In This Topic
    Gets or sets the VBScript that is executed when an error occurs.
    Syntax
    'Declaration
     
    Public Property OnError As String
    public string OnError {get; set;}
    Remarks

    The control also fires the ReportError 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 display a an application dialog box when an error occurs.

    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 an error occurs.

    See Also