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

Returns

Boolean

TRUE if the call is successful.

FALSE if the call fails.

A ixString object containing the report title.

Related Topics

PEGetReportTitle, Volume 2, Chapter 1

CRPEJob::GetSectionFormat

Use GetSectionFormat to retrieve the section format settings for a selected section in the specified report and supply the information by assigning values to the members of class CRPESectionOptions (page 472). Use this method in order to edit and update the section formats and pass the information back using

CRPEJob::SetSectionFormat, Page 456.

Syntax

GetSectionFormat (sectionCode SMALLINT) RETURNING BOOLEAN, CRPESectionOptions

Parameter

sectionCode

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

 

to retrieve format information.

Returns

Boolean

TRUE if the call is successful.

FALSE if the call fails.

class CRPESectionOptions (page 472).

Related Topics

PEGetSectionFormat, Volume 2, Chapter 1

Crystal Class Library for NewEra Reference

432

CRPEJob::GetSelectedPrinter

Syntax

GetSelectedPrinter () RETURNING BOOLEAN, ixString, ixString, ixString, FOREIGN

Remarks

If a non-default printer is specified in the report, this method retrieves information about that printer. If you need to know which printer has been specified with the report, use CRPEJob::GetSelectedPrinter to obtain the information. This can be useful to determine if the user has access to the printer specified in the report and to choose another printer if not.

Returns

BOOLEAN

TRUE if the call is successful, FALSE if something goes wrong.

 

 

ixString

Retrieves the name of the printer driver for the currently selected printer in the report.

 

 

ixString

Retrieves the name of the printer currently selected in the report.

ixString

Retrieves the name of the port the currently selected printer is attached to. For

 

example, “LPT1:”.

 

 

FOREIGN

A DEVMODE class that contains information on the currently selected printer, if the

 

CRPEJob::GetSelectedPrinter method completes successfully. For more information,

 

see DEVMODE, Volume 2, Chapter 1.

 

 

Related Topics

PEGetSelectedPrinter, Volume 2, Chapter 1

CRPEJob::GetSelectionFormula

Syntax

GetSelectionFormula() RETURNING BOOLEAN, ixString

Remarks

This method returns the formula text for the record selection formula. CRPEJob::GetSelectionFormula 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.

Crystal Class Library for NewEra Reference

433

Returns

BOOLEAN

TRUE if the call is successful, FALSE if something goes wrong.

 

 

ixString

Specifies the existing selection formula for the report.

Related Topics

PEGetSelectionFormula, Volume 2, Chapter 1

CRPEJob::GetSQLQuery

Syntax

GetSQLQuery () RETURNING BOOLEAN, ixString

Remarks

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

Return Values

TRUE if the call is successful, FALSE if something goes wrong.

ixString

Assigned the text of the SQL query being sent to the server if the call

 

completes successfully.

 

 

Related Topics

PEGetSQLQuery, Volume 2, Chapter 1

CRPEJob::IsJobFinished

Syntax

IsJobFinished () RETURNING BOOLELAN

Remarks

This method returns a Boolean value that indicates whether or not processing has finished for the print job. You can use this method any time you have a call that is contingent on a print job being finished.

Crystal Class Library for NewEra Reference

434

Return Value

TRUE if processing has finished, FALSE if the job is in progress.

Related Topics

PEIsPrintJobFinished, Volume 2, Chapter 1

CRPEJob::NextWindowMagnification

Syntax

NextWindowMagnification () RETURNING BOOLEAN

Remarks

This method switches to the next preview window magnification in order. Use this function to cycle through the three levels of preview window magnification whenever the report has been printed to a preview window. The three levels of magnification are: Full Page, Fit One Side, and Fit Both Sides.

Return Value

TRUE if the call is successful, FALSE if something goes wrong.

Related Topics

PENextPrintWindowMagnification, Volume 2, Chapter 1

CRPEJob::OutputToPrinter

Use OutputToPrinter to set the output of the print job to the printer with the specified number of copies. This method does not print the report, but specifies that when the report is printed, it will be sent to a printer. To actually print the report, use CRPEJob::StartJob, Page 459.

Syntax

OutputToPrinter (nCopies SMALLINT : 1) RETURNING BOOLEAN

Parameter

nCopies

Specifies how many copies of the report are to be printed. Default is 1 copy.

 

 

Crystal Class Library for NewEra Reference

435

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