VSView Reporting Edition Reference > VSReport Control > VSReport Properties > IsBusy Property |
Returns whether a report is currently being generated.
val% = [form!]VSReport.IsBusy
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
Boolean