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

CRPEJob::CheckGroupSelectionFormula

Use CheckGroupSelectionFormula to check the group selection formula for the report for errors. This method works just like the Check button in the Formula Editor. If the group selection formula contains an error, the method returns FALSE.

Syntax

CheckGroupSelectionFormula () RETURNING BOOLEAN

Returns

TRUE if the formula text is correct.

FALSE if there is an error in the formula or if the call fails.

Related Topics

PECheckGroupSelectionFormula, Volume 2, Chapter 1

CRPEJob::CheckSelectionFormula

Use CheckSelectionFormula to check the record selection formula for the report for errors. This method works just like the Check button in the Formula Editor. If the selection formula contains an error, the method returns FALSE.

Syntax

CheckSelectionFormula () RETURNING BOOLEAN

Returns

TRUE if the formula text is correct.

FALSE if there is an error in the formula or if the call fails.

Related Topics

PECheckSelectionFormula, Volume 2, Chapter 1

Crystal Class Library for NewEra Reference

408

CRPEJob::Close

Use Close to close the print job. It also calls the destructor for the CRPEJob object. If printing has not yet finished when this method is called, it continues until the job is completely printed. If the preview window is open, it stays open.

Syntax

Close () RETURNING VOID

Related Topics

PEClosePrintJob, Volume 2, Chapter 1

CRPEJob::CloseWindow

Use CloseWindow closes the preview window. If you are customizing preview window controls, implement this method to allow the user to close the preview window when finished viewing the report.

Syntax

CloseWindow () RETURNING VOID

Related Topics

PECloseWindow, Volume 2, Chapter 1

CRPEJob::DeleteNthGroupSortField

Use DeleteNthGroupSortField to delete the group sort field at the specified position. The group and group summary are not removed from the report, but the field is removed from the list of group sort fields, and the summary data appearing in the group field is no longer sorted.

Syntax

DeleteNthGroupSortField (sortFieldN SMALLINT) RETURNING BOOLEAN

Parameter

sortFieldN

Specifies the 0-based number of the group sort field you want to delete. The first group

 

sort field added to the report is field 0, the second is 1, etc.

 

 

Crystal Class Library for NewEra Reference

409

Returns

TRUE if the call is successful.

FALSE if the call fails.

Related Topics

PEDeleteNthGroupSortField, Volume 2, Chapter 1

CRPEJob::DeleteNthSortField

Use DeleteNthSortField to delete the specified sort field from the report. The field is not deleted from the report, but it is removed from the list of sort fields, and data in that field no longer appears sorted.

Syntax

DeleteNthSortField (sortFieldN SMALLINT) RETURNING BOOLEAN

Parameter

sortFieldN

Specifies the number of the sort field you want to delete. The first sort field added to the

 

report is field 0, the second is 1, etc.

 

 

Returns

TRUE if the call is successful.

FALSE if the call fails.

Related Topics

PEDeleteNthSortField, Volume 2, Chapter 1

CRPEJob::ExportPrintWindow

Use ExportPrintWindow to export the report displayed in the preview window to a disk file or e-mail address. If you are customizing preview window controls, use this method to enable the user to preview the report in the preview window, and if everything looks satisfactory, to export the report to a disk file or e-mail address (in response to a user event - button click, menu command, etc.).

Syntax

ExportPrintWindow (toMail BOOLEAN) RETURNING BOOLEAN

Crystal Class Library for NewEra Reference

410

Parameter

toMail

Specifies whether or not the report file should be exported to an e-mail address. If TRUE, the

 

file is exported to e-mail. If FALSE, the file is exported to a disk file.

 

 

Returns

TRUE if the call is successful.

FALSE if the call fails.

CRPEJob::ExportTo

Use ExportTo to set the output of the print job to be exported. The export format is specified through the options parameter. This method does not export the report, but specifies that when the report is printed, it will be exported to a disk file or e-mail address according to settings in the options parameter. To actually export the report, use CRPEJob::StartJob, Page 459.

Syntax

ExportTo (options CRPEExportOptions) RETURNING BOOLEAN

Parameter

options

Specifies a pointer to class CRPEExportOptions (page 461).

 

 

Returns

TRUE if the call is successful.

FALSE if the call fails.

Related Topics

PEExportTo, Volume 2, Chapter 1

CRPEJob::GetErrorCode

Use GetErrorCode to retrieve the error code for the print job. When a call to another function fails, this call gets the error code that was generated so you can take some action based on that error code.

Syntax

GetErrorCode () RETURNING SMALLINT

Crystal Class Library for NewEra Reference

411

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