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

View Object Properties

Property

Description

Read/Write

 

 

 

 

 

 

Application

Returns a reference to the Application Object (page 290), that

Read only

 

this object is associated with.

 

 

 

 

DisplayedPageNumber

Returns the page number currently displayed in the current

Read only

 

view. You will receive an incorrect result if you try to obtain

 

 

this value immediately after using a method such as

 

 

ShowNextPage, Page 378, that causes a change to the

 

 

Preview window. Call the Visual Basic function, DoEvents

 

 

(see Visual Basic documentation for more information)

 

 

before requesting the page number display.

 

 

 

 

Parent

Reference to the Parent object Window Object (page 379)).

Read only

 

 

 

Report

Reference to Report Object (page 349).

Read only

 

 

 

View Object Methods

Close

The Close method closes the main view. Because only one view is supported, this method will apply to the main view (preview) only. The Preview window will be closed.

Syntax

object.Close

Export

The Export method exports the main view to selected format and destination; prompts for options. Because only one view is supported, this method will apply to the main view (preview) only.

Syntax

object.Export

Crystal Report Engine Object Model for the Automation Server

376

NextMagnification

The NextMagnification method shows the view at the “next magnification” in the series (that is, page width -- full page -- 100%). Because only one view is supported, this method will apply to the main view (preview) only.

Syntax

object.NextMagnification

PrintOut

The PrintOut method sends the view to printer specified in the report to be printed. Because only one view is supported, this method will apply to the main view (preview) only.

Syntax

object.PrintOut

ShowFirstPage

The ShowFirstPage method shows the first page of the view. Because only one view is supported, this method will apply to the main view (preview) only.

Syntax

object.ShowFirstPage

ShowLastPage

The ShowLastPage method shows the last page of the view. Because only one view is supported, this method will apply to the main view (preview) only.

Syntax

object.ShowLastPage

Crystal Report Engine Object Model for the Automation Server

377

ShowNextPage

The ShowNextPage method shows the next page of the view. Because only one view is supported, this method will apply to the main view (preview) only.

Syntax

object.ShowNextPage

ShowNthPage

The ShowNthPage method shows the nth page of the view. Because only one view is supported, this method will apply to the main view (preview) only.

Syntax

object.ShowNthPage (PageNumber)

Parameter

PageNumber

Specifies the number of the page to be shown.

 

 

ShowPreviousPage

The ShowPreviousPage method shows the previous page of the view. Because only one view is supported, this method will apply to the main view (preview) only.

Syntax

object.ShowPreviousPage

ZoomPreviewWindow

The ZoomPreviewWindow method zooms the view in and out, showing the report as a percentage of the full size of the report page. Because only one view is supported, this method will apply to the main view (preview) only.

Syntax

object.ZoomPreviewWindow (ZoomLevel)

Crystal Report Engine Object Model for the Automation Server

378

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