CloseButtonClicked Event (Window Object)

Sample Code - CloseButtonClicked Event

The CloseButtonClicked event occurs when the Close button is clicked, either to close a view or the entire preview window itself.

Syntax
Event CloseButtonClicked (ViewIndex As Integer, 
useDefault As Boolean)
Parameters

ViewIndex

Specifies the index of the view that is to be closed.

useDefault

Specifies Boolean value indicating whether the default settings should be used. Assign useDefault = FALSE if not using default behavior defined in CPEAUT (that is, if you do not want the view/preview window to close).

Remarks

Before enabling this event, the HasCloseButton property of the PrintWindowOptions Object, must be set to TRUE. This event is enabled by using the PrintWindowButtonEnabled property of the EventInfo Object, obtained through the EventInfo property of the Report Object. For more information, see Object Model Events.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com