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

PrintDate

Declaration

property PrintDate: TCrpePrintDate;

Type

TCrpePrintDate = class(TPersistent)

Description

The PrintDate object contains the three properties that make up the print date: Year, Month, and Day.

These properties can be used to set the Print Date of the report to something other than the current date, so as to generate reports that appear to have been run a month ago, etc.

The Retrieve method can be used to get the current PrintDate from the report.

PrintDate Example

The following sample sets the PrintDate to January 1, 1999:

Crpe1.ReportName := 'MyReport.rpt';

Crpe1.PrintDate.Day := 1;

Crpe1.PrintDate.Month := 1;

Crpe1.PrintDate.Year := 1999;

Crpe1.Execute;

PrintDate Properties

PrintDate Day property, Page 484

PrintDate Month property, Page 484

PrintDate Year property, Page 485

PrintDate Methods

PrintDate Clear method, Page 485

PrintDate CopyFrom method, Page 486

PrintDate Retrieve method, Page 486

PrintDate Send method, Page 487

VCL Reference

67

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