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

 

Value

Meaning

 

 

 

 

 

 

 

PEP_JOBINPROGRESS

The job is currently in progress.

 

 

 

 

PEP_JOBCOMPLETED

The job has completed

 

 

successfully.

 

 

 

 

PEP_JOBFAILED

The job has failed.

 

 

 

 

PEP_JOBCANCELLED

The job has been cancelled by the

 

 

user.

 

 

 

CRPEJobInfo

Class CRPEJobInfo.

 

 

 

 

Related Topics

PEGetJobStatus, Volume 2, Chapter 1

CRPEJob::GetLineHeight

Syntax

GetLineHeight (sectionCode SMALLINT, lineN SMALLINT) RETURNING BOOLEAN, SMALLINT, SMALLINT

Parameters

sectionCode

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

 

to retrieve line height.

 

 

lineN

Specifies the 0-based line number within the specified section for which you want to

 

retrieve the height. The first line in a section is line 0, the second is 1, etc. Use

 

PEP_ALLLINES to retrieve information on all lines in a section.

 

 

Remarks

Gets line height and ascent information for a specified line in a selected section of the report. You can change and pass back a new line height and ascent using CRPEJob::SetLineHeight, Page 447.

Return Value

BOOLEAN

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

SMALLINT

Retrieves the height, in twips, of the specified line.

 

 

SMALLINT

Retrieves the line ascent, in twips, of the specified line. Line ascent is the

 

distance from the baseline of the font to the top of the line space.

 

 

Crystal Class Library for NewEra Reference

420

CRPEJob::GetMargins

Syntax

GetMargins () RETURNING BOOLEAN, SMALLINT, SMALLINT, SMALLINT, SMALLINT

Remarks

Retrieves the page margin settings for the specified report. Use this method to find out what the currently set margins for the report are. Use CRPEJob::SetMargins, Page 448, to change report margins.

Return Value

BOOLEAN

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

SMALLINT

Retrieves the current setting of the left margin in twips.

 

 

SMALLINT

Retrieves the current setting of the right margin in twips.

 

 

SMALLINT

Retrieves the current setting of the top margin in twips.

 

 

SMALLINT

Retrieves the current setting of the bottom margin in twips.

Related Topics

PEGetMargins, Volume 2, Chapter 1

CRPEJob::GetMinimumSectionHeight

Syntax

GetMinimumSectionHeight (sectionCode SMALLINT) RETURNING BOOLEAN, SMALLINT

Parameter

sectionCode

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

 

want to retrieve minimum section height.

 

 

Remarks

Retrieves minimum section height information for selected sections in the specified report. Use this method to fetch the minimum section height and pass back using CRPEJob::SetMinimumSectionHeight, Page 449.

Crystal Class Library for NewEra Reference

421

Return Values

BOOLEAN

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

 

 

SMALLINT

Retrieves the minimum height, in twips, for the specified report section.

Related Topics

PEGetMinimumSectionHeight, Volume 2, Chapter 1

CRPEJob::GetNDetailCopies

Syntax

GetNDetailCopies () RETURNING BOOLEAN, SMALLINT

Remarks

Returns the number of copies of each Details section in the report that are to be printed. Use this method to find out how many times each Details section of the report will be printed. To change the number of times each Details section is printed, use CRPEJob::SetNDetailCopies, Page 449.

Return Values

BOOLEAN

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

 

 

nCopies

Retrieves the current setting for the number of times the Details section

 

of the report will be printed.

Related Topics

 

PEGetNDetailCopies, Volume 2, Chapter 1

CRPEJob::GetNFormulas

Syntax

GetNFormulas () RETURNING SMALLINT

Remarks

Use this function to fetch the number of formulas in the report. To fetch the formula by number, use

CRPEJob::GetNthFormula, Page 425.

Crystal Class Library for NewEra Reference

422

Return Value

The number of formulas in the report. If no formulas exist in the report, 0 is returned. If an error occurs, -1 is returned.

Related Topics

PEGetNFormulas, Volume 2, Chapter 1

CRPEJob::GetNGroups

Use GetNGroups to retrieve the number of group sections in the report.

Syntax

GetNGroups () RETURNING SMALLINT

Returns

Returns the number of group sections in the report.

Returns -1 if an error occurs.

Related Topics

PEGetNGroups, Volume 2, Chapter 1

CRPEJob::GetNGroupSortFields

Use GetNGroupSortFields to retrieve the number of group sort fields in the specified report. This method is typically used as one of a series: GetNGroupSortFields (called once); CRPEJob::GetNthSortField, Page 427, (called as many times as needed to identify the correct group sort field); and CRPEJob::SetNthSortField, Page 451, (called once when the correct group sort field is identified). The series can be used to identify and then change an existing group sort field and/or sort order at print time in response to a user selection.

Syntax

GetNGroupSortFields () RETURNING SMALLINT

Returns

Returns the number of group sort fields in the report.

Returns 0 if there are no group sort fields.

Returns -1 if an error occurs.

Crystal Class Library for NewEra Reference

423

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