ComponentOne VSView Reporting Edition
IsBusy Property

Returns whether a report is currently being generated.

Syntax

val% = [form!]VSReport.IsBusy

Remarks

Use this property to determine whether the control is currently busy generating a report.

This property is especially useful when the DoEvents property is set to True. In this case, the application continues to process user input while the control generates reports, and there is a change that the user might try to start another report before the current one is done.

The code below shows a typical application of the IsBusy property:

Private Sub Render_Click()

  If vsr.IsBusy Then

    Debug.Print "Can't render now, the control is busy."

  Else

    vsr.Render vp

  End If

End Sub

Private Sub Cancel_Click()

  If vsr.IsBusy Then

    Debug.Print "Cancelling Report"

    vsr.Cancel = True

  Else

    Debug.Print "No report to cancel"

  End If

End Sub

Data Type

Boolean

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback