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

WindowZoom

Declaration

property WindowZoom: TCrpeWindowZoom;

Type

TCrpeWindowZoom = class(TPersistent)

Description

WindowZoom controls the zoom level of the Preview Window when sending a Report to window.

The Preview property can be set to one of four pre-defined levels: pwNormal, pwPageWidth, pwWholePage, or pwDefault.

The Magnification property can be set to a Zoom percentage from 25 to 400 percent.

The two properties are mutually exclusive, that is, assigning a value other than default to one of the properties, will cause the other to be set to default.

The WindowZoom properties can be set in code before or after the Execute method. If they are set after Execute, and the Output property was set toWindow, they will change the zoom level of the current Report window.

WindowZoom Example

This example sets the zoom magnification level of the Preview Window to 50 percent:

Crpe1.WindowZoom.Magnification := 50;

This example sets the Preview Window zoom level so that the Report will be sized to the width and height of the window:

Crpe1.WindowZoom.Preview := pwWholePage;

WindowZoom Properties

WindowZoom Magnification property, Page 712

WindowZoom Preview property, Page 713

WindowZoom Methods

WindowZoom CopyFrom method, Page 714

WindowZoom Create method, Page 714

WindowZoom NextLevel method, Page 714

WindowZoom Send method, Page 715

VCL Reference

130

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