FlexReport for UWP | ComponentOne
C1.UWP.FlexReport Assembly / C1.Xaml.FlexReport Namespace / C1FlexReport Class / OnClose Property

In This Topic
    OnClose Property
    In This Topic
    Gets or sets the VBScript that is executed when the report finishes rendering.
    Syntax
    'Declaration
     
    Public Property OnClose As String
    public string OnClose {get; set;}
    Remarks

    The control also fires the EndReport 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 message on the main window when rendering finishes.

    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 resets global variables in the VBScript context when a report starts rendering.

    See Also