ComponentOne VSView Reporting Edition
OnClose Property

Returns or sets the VBScript handler for the OnClose event.

Syntax

[form!]VSReport.OnClose[ = value As String ]

Remarks

This property contains a string with a VBScript that gets executed when the report finishes rendering. The control also fires the OnClose 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 enable or disable buttons depending on whether or not a report is being rendered.

The VBScript handler in the property belongs to the report, and will be executed regardless of the application. For example, a particular report might contain a VBScript handler that resets the page counter when it finishes rendering (this could be useful in a subreport).

Data Type

String

 

 


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

Product Support Forum  |  Documentation Feedback