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

Refresh

The Refresh method causes the report displayed in the Smart Viewer to be reloaded from its original source (the Report Designer Component).

Syntax

object.Refresh()

SearchByFormula

The SearchByFormula method allows you to search using the search formula.

Syntax

Sub SearchByFormula(formula As String)

Parameter

Parameter

Description

 

 

 

 

formula

Specifies the formula you want to use as your search string.

Remarks

Search UI is shown if formula is empty.

SearchForText

The SearchForText method allows searching for text across pages of the currently displayed report.

Syntax

object.SearchForText(Text As String)

Parameter

Parameter

Description

 

 

 

 

Text

The value to be searched for. Pass this value as a string, even if the actual value is numeric.

 

 

Smart Viewer Object Models

149

SetFocus

The SetFocus method moves the focus to the specified object.

Syntax

object.SetFocus()

ShowFirstPage

The ShowFirstPage method shows the first page of the report.

Syntax

object.ShowFirstPage()

ShowGroup

The ShowGroup method displays the indicated group in the current view. GroupPath can be a colondelimited string (Country:State:City) or a safe array of strings.

Syntax

object.ShowGroup(GroupPath)

Parameter

Parameter

Description

 

 

 

 

GroupPath

A path to the group that is to be displayed. Use a safe array of strings or a colon delimited

 

string (e.g. Canada:BC:Vancouver).

 

 

ShowLastPage

The ShowLastPage method shows the last page of the report.

Syntax

object.ShowLastPage()

Smart Viewer Object Models

150

ShowNextPage

The ShowNextPage method shows the next page of the report.

Syntax

object.ShowNextPage()

ShowNthPage

The ShowNthPage method shows the desired page of the report.

Syntax

object.ShowNthPage(PageNumber As Integer)

Parameter

Parameter Description

PageNumber

The page number that is to be displayed.

ShowPreviousPage

The ShowPreviousPage method shows the previous page of the report.

Syntax

object.ShowPreviousPage()

ShowWhatsThis

The ShowWhatsThis method displays a corresponding topic in the Help file using the What's This popup provided by Windows 95 Help.

Syntax

object.ShowWhatsThis()

Smart Viewer Object Models

151

ViewReport

The ViewReport method allows you to view the report.

Syntax

object.ViewReport()

Zoom

The Zoom method changes the display of the report.

Syntax

object.Zoom(ZoomLevel As Integer)

Parameter

Parameter

Description

 

 

 

 

ZoomLevel

The zoom level to set the view of the report at. Indicate a percentage, or use 1 to fit the

 

entire width of the page in the Smart Viewer window (but not the entire page) or 2 to fit

 

the entire page in the window.

 

 

ZOrder

The ZOrder method places a specified object at the front or back of the z-order within its graphical level.

Syntax

object.ZOrder([Position])

Parameter

Parameter

Description

 

 

 

 

Position

An integer indicating the ZOrder of the Smart Viewer on the Form.

Smart Viewer Object Models

152

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