Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
191
Добавлен:
11.05.2015
Размер:
4.96 Mб
Скачать

Constant

Value

 

 

 

 

crDrillOnGraph

2

 

 

crDrillOnGroup

0

crDrillOnGroupTree

1

 

 

Parameter

Description

 

 

 

 

UseDefault

Indicates whether or not the default action of the event will be performed.

 

 

ExportButtonClicked Event

The ExportButtonClicked event occurs when the Export button is clicked.

Syntax

Event ExportButtonClicked(UseDefault As Boolean)

Parameter

Parameter

Description

 

 

 

 

UseDefault

Indicates whether or not the default action of the event will be performed.

 

 

FirstPageButtonClicked Event

The FirstPageButtonClicked event occurs when the button which navigates through the report to the first page is clicked.

Syntax

Event FirstPageButtonClicked(UseDefault As Boolean)

Parameter

Parameter

Description

 

 

 

 

UseDefault

Indicates whether or not the default action of the event will be performed.

 

 

GotFocus Event

The GotFocus event occurs when any object in the report receives the focus.

Syntax

Event GotFocus()

Smart Viewer Object Models

157

GoToPageNClicked Event

The GoToPageNClicked event occurs when a user requests and goes to a specific page in the report.

Syntax

Event GoToPageNClicked(UseDefault As Boolean, PageNumber As Integer)

Parameters

Parameter

Description

 

 

 

 

UseDefault

Indicates whether or not the default action of the event will be performed.

 

 

PageNumber

The page number of the page that is displayed.

 

 

GroupTreeButtonClicked Event

The GroupTreeButtonClicked event occurs when the Group Tree button is clicked to show/hide the Group Tree in the viewer window.

Syntax

Event GroupTreeButtonClicked(Visible As Boolean)

Parameter

Parameter Description

Visible

Indicates whether or not the Group Tree is now visible.

LastPageButtonClicked Event

The LastPageButtonClicked event occurs when the button which navigates through the report to the last page is clicked.

Syntax

Event LastPageButtonClicked(UseDefault As Boolean)

Parameter

Parameter

Description

 

 

 

 

UseDefault

Indicates whether or not the default action of the event will be performed.

 

 

Smart Viewer Object Models

158

LostFocus Event

The LostFocus event occurs when the Smart Viewer window loses the focus.

Syntax

Event LostFocus()

NextPageButtonClicked Event

The NextPageButtonClicked event occurs when the button which navigates through the report to the next page is clicked.

Syntax

Event NextPageButtonClicked(UseDefault As Boolean)

Parameter

Parameter

Description

 

 

 

 

UseDefault

Indicates whether or not the default action of the event will be performed.

 

 

OnReportSourceError Event

The OnReportSourceError event occurs when the report source (assigned to the ReportSource property) causes an error or can not be loaded by the Smart Viewer.

Syntax

Event OnReportSourceError(errorMsg As String, errorCode As Long, UseDefault As Boolean)

Parameters

Parameter

Description

 

 

 

 

errorMsg

A string containing information about the error.

 

 

errorCode

A number specifying an error ID.

 

 

UseDefault

Indicates whether or not the default action of the event will be performed.

 

 

Smart Viewer Object Models

159

PrevPageButtonClicked Event

The PrevPageButtonClicked event occurs when the button which navigates through the report to the previous page is clicked.

Syntax

Event PrevPageButtonClicked(UseDefault As Boolean)

Parameter

Parameter Description

UseDefault

Indicates whether or not the default action of the event will be performed.

PrintButtonClicked Event

The PrintButtonClicked event occurs when the Print button is clicked.

Syntax

Event PrintButtonClicked(UseDefault As Boolean)

Parameter

Parameter

Description

 

 

 

 

UseDefault

Indicates whether or not the default action of the event will be performed.

 

 

RefreshButtonClicked Event

The RefreshButtonClicked event occurs when the Refresh button is clicked.

Syntax

Event RefreshButtonClicked(UseDefault As Boolean)

Parameter

Parameter

Description

 

 

 

 

UseDefault

Indicates whether or not the default action of the event will be performed.

 

 

Smart Viewer Object Models

160

Соседние файлы в папке crystal