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

Parameters

startPageN

Specifies the first page that you want to print. Assigns this value to the

 

CRPEPrintOptions::m_startPageN member.

stopPageN

Specifies the last page that you want to print. Assigns this value to the

 

CRPEPrintOptions::m_stopPageN member.

 

 

 

nReportCopies

Specifies the number of copies that you want to print. Assigns this value to the

 

CRPEPrintOptions::m_nReportCopies member.

collation

Indicates whether or not you want the copies of the report to be collated (if you are

 

printing multiple copies of a multiple page report). Assigns this value to the

 

CRPEPrintOptions::m_collation member. Possible values are:

 

 

 

 

 

 

 

Value

Meaning

 

 

 

 

 

 

 

PEP_UNCOLLATED

Prints multiple copies of a multiple page report

 

 

uncollated (Page order = 1, 1, 1, 2, 2, 2, 3, 3, 3, etc.).

 

PEP_COLLATED

Prints multiple copies of a multiple page report

 

 

collated (Page order = 1, 2, 3..., 1, 2, 3..., etc.).

 

 

 

 

PEP_DEFAULTCOLLATION

Prints multiple copies of a multiple page report

 

 

using the collation settings specified in the report.

Remarks

Constructs a CRPEPrintOptions class object. Call the constructor with no parameters to allow the Class Library to initialize all member variables with default values. Pass parameters to the constructor to assign specific values to each member variable.

class CRPESectionOptions

This class contains specifications for formatting selected report sections. This information is used by the methods CRPEJob::GetSectionFormat, Page 432, and CRPEJob::SetSectionFormat, Page 456.

Data Members

m_visible

Specifies whether or not the selected section is to be visible. Use TRUE to

 

keep the section visible, FALSE to hide the section.

 

 

m_newPageBefore

Specifies whether or not the Crystal Report Engine is to insert a page break

 

before the section is printed. Use TRUE to insert a page break, FALSE to

 

leave it without a page break.

 

 

Crystal Class Library for NewEra Reference

472

m_newPageAfter

Specifies whether or not the Crystal Report Engine is to insert a page break

 

after the section is printed. Use TRUE to insert a page break, FALSE to leave

 

it without a page break.

 

 

m_keepTogether

Specifies whether or not the Crystal Report Engine is to keep all lines of the

 

section together, either on the current page (if there is room), or on the next

 

page. Pass TRUE to keep the lines together, FALSE to allow the Crystal

 

Report Engine to split section data from one page to the next if necessary.

 

 

m_suppressBlankLines

Specifies whether or not the Crystal Report Engine is to eliminate lines from

 

your report that are blank due to fields being suppressed (zeroes, duplicates,

 

and hidden fields). TRUE eliminates blank lines. FALSE retains them.

 

 

m_resetPageNAfter

Specifies whether or not the Crystal Report Engine is to reset the page

 

number to one (1) for the following page, after it prints a group total. Use

 

TRUE to reset the page number, FALSE to keep standard numbering.

 

 

m_printAtBottomOfPage

Specifies whether or not the Crystal Report Engine is to cause each group

 

summary value to print only at the bottom of a page. Use TRUE to print

 

summaries at the bottom of the page, FALSE to print summaries

 

immediately after the group.

 

 

Constructor CRPESectionOptions::CRPESectionOptions

Syntax

CRPESectionOptions (visible BOOLEAN : FALSE, newPageBefore BOOLEAN : FALSE, newPageAfter BOOLEAN : FALSE, keepTogether BOOLEAN : FALSE, suppressBlankLines

BOOLEAN : FALSE, resetPageNAfter BOOLEAN : FALSE, printAtBottomOfPage BOOLEAN : FALSE)

Parameters

visible

Specifies whether or not the selected section is to be visible. Use TRUE to keep

 

the section visible, FALSE to hide the section. Assigns this value to the

 

CRPESectionOptions::m_visible member.

 

 

newPageBefore

Specifies whether or not the Crystal Report Engine is to insert a page break

 

before the section is printed. Use TRUE to insert a page break, FALSE to leave it

 

without a page break. Assigns this value to the

 

CRPESectionOptions::m_newPageBefore member.

 

 

newPageAfter

Specifies whether or not the Crystal Report Engine is to insert a page break

 

after the section is printed. Use TRUE to insert a page break, FALSE to leave it

 

without a page break. Assigns this value to the

 

CRPESectionOptions::m_newPageAfter member.

 

 

Crystal Class Library for NewEra Reference

473

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