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

CRPEJob::SetPrintOptions

Syntax

SetPrintOptions (options CRPEPrintOptions) RETURNING BOOLEAN

Parameter

options

Specifies a pointer to class CRPEPrintOptions (page 471).

 

 

Remarks

This method may be used to set the print characteristics of a print job. Use this method any time you want to set the starting page number, the ending page number, the number of report copies, and/or collation instructions for a print job at runtime in response to user specifications.

Returns

TRUE if the call is successful.

FALSE if the call fails.

Related Topics

PESetPrintOptions, Volume 2, Chapter 1

CRPEJob::SetReportTitle

Syntax

SetReportTitle (title CHAR(*)) RETURNING BOOLEAN

Parameter

title

Specifies a new title for the report.

 

 

Remarks

This method sets the report title for the print job. Use this method whenever you need to change the title of a report at print time.

Crystal Class Library for NewEra Reference

455

Returns

TRUE if the call is successful.

FALSE if the call fails.

Related Topics

PESetReportTitle, Volume 2, Chapter 1

CRPEJob::SetSectionFormat

Syntax

SetSectionFormat (sectionCode SMALLINT, options CRPESectionOptions) RETURNING BOOLEAN

Parameters

sectionCode

Specifies the Section Codes (page 480), for the section of the report for which you want

 

to set the section format.

 

 

options

Specifies a pointer to class CRPESectionOptions (page 472).

 

 

Remarks

Sets the section format settings for selected sections in the specified report to the values in the CRPESectionOptions class. This method can be used to provide specialized formatting for printing invoices, form letters, printing to pre-printed forms, etc. It allows you to hide a section, insert a page break either before or after a section begins, reset the page number to 1 after a group value prints, prevent page breaks from spreading data from a single record over two pages, and to print group values only at the bottom of a page. For a complete discussion of each of these options, see class CRPESectionOptions, Page 472.

Returns

TRUE if the call is successful.

FALSE if the call fails.

Related Topics

PESetSectionFormat, Volume 2, Chapter 1

Crystal Class Library for NewEra Reference

456

CRPEJob::SetSelectionFormula

Syntax

SetSelectionFormula (formulaText CHAR(*)) RETURNING BOOLEAN

Parameter

formulaText

Specifies the new selection formula to be assigned to the report.

Remarks

This method sets the formula text for the record selection formula. CRPEJob::SetSelectionFormula is often used with CRPEJob::GetSelectionFormula, Page 433, to identify and then change an existing selection formula at print time in response to a user selection.

Returns

TRUE if the call is successful.

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

Related Topics

PESetSelectionFormula, Volume 2, Chapter 1

CRPEJob::SetSQLQuery

Syntax

SetSQLQuery (query CHAR(*)) RETURNING BOOLEAN

Parameter

query

The text of the new SQL query to be sent to the server.

 

 

Remarks

This method sets the SQL query that will be sent to the database server. This method can be used with CRPEJob::GetSQLQuery, Page 434 to retrieve and then change the SQL query for the report.

Crystal Class Library for NewEra Reference

457

Returns

TRUE if the call is successful.

FALSE if the call fails.

Related Topics

PESetSQLQuery, Volume 2, Chapter 1

CRPEJob::Show...Page

Use these methods to show the specified page in the preview window. Use these methods to customize how a user moves through the pages of a report.

Syntax

ShowFirstPage () RETURNING BOOLEAN

ShowLastPage () RETURNING BOOLEAN

ShowNextPage () RETUNING BOOLEAN

ShowPreviousPage () RETURNING BOOLEAN

Returns

TRUE if the call is successful.

FALSE if the call fails.

Related Topics

PEShow...Page, Volume 2, Chapter 1

CRPEJob::ShowPrintControls

Use ShowPrintControls to toggle the display of the preview window control buttons. Use this to display default controls, or to hide default controls and provide customized controls.

Syntax

ShowPrintControls (showControls BOOLEAN) RETURNING BOOLEAN

Crystal Class Library for NewEra Reference

458

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