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

Output

Declaration

property Output: TCrOutput;

Type

TCrOutput = (toWindow, toPrinter, toExport);

Description

The Output property determines the destination of the Report when the Execute method is called. The three possible values are:

toWindow

Sends the Report to a Preview Window (this is the default).

 

 

toPrinter

Sends the Report to the Printer.

 

 

toExport

Sends the Report to an Exported File, or to Email, or to an Exchange Folder.

toWindow

The following properties can be used to set the various Window options: WindowButtonBar, WindowSize, WindowState, WindowStyle, WindowZoom, and WindowEvents.

toPrinter

The following properties can be used to set the various Printer options: Printer, PrintOptions, and ProgressDialog.

toExport

The following properties can be used to set the various Printer options: Export, and ProgressDialog. The Destination property of the Export object determines whether the Report will go to disk File, or to Email, or to Exchange Folder. The Export FileType property will determine the file format of the resulting exported Report.

Output Example

In this example, the Output property is set toWindow. When the Execute method is called, the Report will appear in a Preview Window:

Crpe1.ReportName := 'C:\Company.rpt';

Crpe1.Output := toWindow;

Crpe1.Execute;

VCL Reference

58

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