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

Parameter

ZoomLevel

Specifies the percentage of magnification for the view (for example, 50%, 75%, etc.).

 

 

Views Collection

The Views Collection is a collection of views for a report. A View Object, Page 375, is created when a report is first generated and displayed in the Preview window. If a user drills-down on summary values or on graph data, additional View objects are created as additional drill-down views appear in the Preview window. Each Preview tab that appears in the Preview window represents a separate View object. Only the View object for the currently active Preview tab can be manipulated at runtime.

The Views collection contains all View objects for the report. However, since only the currently active view can be accessed, the Count property will always contain a value of 1. The currently active View object can be accessed by passing 1 to the Item property. For example:

Set activeView = viewsCollection.Item(1)

Views Collection Properties

Property

Description

Read/Write

 

 

 

 

 

 

Application

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

Read only

 

is associated with.

 

 

 

 

Count

Returns the number of views in the collection. Because only one view is

Read only

 

supported (preview), this number should always be 1.

 

 

 

 

Item

Returns View Object (page 375). Item has an index parameter that is a

Read only

 

numeric, 1-based index (that is, Item (1) returns the main view). Because

 

 

only a single View object can be accessed at any time, the currently

 

 

active view, any index other than 1 will return an error.

 

 

 

 

Parent

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

Read only

Report

Reference to Report Object (page 349).

Read only

 

 

 

Remarks

Instead of using the Item property as shown, you can reference a view directly (for example, Views (1)).

Window Object

The Window Object is obtained through View.Parent. It is the window that previews the report. A Window represents the highest-level window associated with a single report. In the Crystal Report Engine and the Crystal Report Automation Server, it is a preview window.

Crystal Report Engine Object Model for the Automation Server

379

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