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

Crpe1.SortFields.Retrieve;

Crpe1.GroupSortFields.Retrieve;

Crpe1.GroupOptions.Retrieve; (* or GroupCondition for Crystal 5.0 *)

Crpe1.PrintDate.Retrieve;

Crpe1.Margins.Retrieve;

Crpe1.RetrieveReportTitle;

Crpe1.RetrieveDetailCopies;

end;

Please remember that the Retrieve method clears out the subclass object first before retrieving values from the report, so be sure to use it at the beginning of the code that deals with that particular object. This is the correct way:

Crpe1.Tables.Retrieve;

Crpe1.Tables[4].Name := 'MyNewTable.dbf';

And this is the wrong way:

Crpe1.Tables[4].Name := 'MyNewTable.dbf';

Crpe1.Tables.Retrieve;

How do I clear an object?

Each subclass object can be cleared manually via the Clear method. Since this will happen automatically when the ReportName is changed or when the CloseJob method is called, this is not normally required.

Other Guidelines

Zero-based numbering is used throughout the Seagate Crystal Component, to make it compatible with the Seagate Crystal Reports Print Engine. So, the first table is Table[0], the first Formula is Formulas[0], etc. The only exception to the rule is the Group numbering, which starts with 1, just as it is in the Crystal Reports Designer. So the various Section objects use GH1 as the first group, not GH0. Likewise, the GroupCondition property takes 1 as the first Group for the Number property.

For numeric properties, -1 has been used as a default value. Normally, empty strings in properties that are of string type will not be sent to the Print Engine. If you want to send an empty string, use the CrEmptyStr constant, which will tell the Crystal component that you want to intentionally pass an empty string to the report.

Seagate Crystal Visual Component Library

208

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