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

Remarks

Applies only when PrintFileType, Page 223, is 0 - Record, 1 - Tab-separated, 3 - Data Interchange Format (DIF), 4 - CSV, or 5 - Character-Separated.

Applies only when Destination, Page 183, is 2 - File, 3 - E-mail to MAPI, or 4 - E-mail to VIM.

For TrueFalse%, use one of the following values:

¾False = 0

¾True = 1

This property/method is available for subreports.

Data Type

Integer

Availability

Design Time; Runtime

Related Report Engine Functions

PEExportTo, Volume 2, Chapter 1

PrintFileUseRptNumberFmt

PrintFileUseRptNumberFmt specifies, when printing to a file, whether or not the program should print numbers in the same format (decimal places, negatives, etc.) that you have used in the report or instead, optimize the numbers for the file format you have selected.

Syntax

[form.]Report.PrintFileUseRptNumberFmt [=TrueFalse%]

For example:

CrystalReport1.PrintFileUseRptNumberFmt = 1

«Specifies that the program should print numbers in the same format as used in the report.»

Remarks

Applies only when PrintFileType, Page 223, is 0 - Record, 1 - Tab-separated, 3 - Data Interchange Format (DIF), 4 - CSV, or 5 - Character-Separated.

Applies only when Destination, Page 183, is 2 - File, 3 - E-mail to MAPI, or 4 - E-mail to VIM.

Crystal ActiveX Control Reference

227

For TrueFalse%, use one of the following values:

¾False = 0

¾True = 1

This property/method is available for subreports.

Data Type

Integer

Availability

Design Time; Runtime

Related Report Engine Functions

PEExportTo, Volume 2, Chapter 1

PrintMonth

PrintMonth specifies the month component of the print date (if different from the actual date the report is printed).

Syntax

[form.]Report.PrintMonth[= Month%]

For example:

CrystalReport1.PrintMonth= 7

«Sets July as the print month.»

Remarks

Enter a value from 1-12 where January = 1, and December = 12.

PrintYear, Page 229, PrintMonth, Page 228, and PrintDay, Page 211, work together to define the date that the report is to be printed. All three properties must be set in order to define a new print date. If all three properties are not set, the date saved with the report is used. This may be the user’s default date if none has been specified in the report.

NOTE: If you are currently using the VBX control in your application, you will not be able to print individual subreports.

Data Type

Integer

Crystal ActiveX Control Reference

228

Availability

Design Time; Runtime

Related Report Engine Functions

PESetPrintDate, Volume 2, Chapter 1

PrintYear

PrintYear specifies the year component of the print date (if different from the actual date the report is printed).

Syntax

[form.]Report.PrintYear[=Year%]

For example:

CrystalReport1.PrintYear = 1994

«Sets the year component of the print date to 1994.»

Remarks

Enter the print year as a four-digit number.

PrintYear, Page 229, PrintMonth, Page 228, and PrintDay, Page 211, function together. You must change the value of all three to change the print date. If you do not change all three, the print date saved with the report is used. This may be the current date if a specific date is not saved with the report.

NOTE: If you are currently using the VBX control in your application, you will not be able to print individual subreports.

Data Type

Integer

Availability

Design Time; Runtime

Related Report Engine Functions

PESetPrintDate, Volume 2, Chapter 1

Crystal ActiveX Control Reference

229

ProgressDialog

ProgressDialog indicates whether the display of the Progress dialog box is enabled or disabled. The Progress dialog box displays the progress of the report when it is running (records read, records selected, and so forth).

Syntax

[form.]Report.ProgressDialog[= {True|False}]

For example:

CrystalReport1.ProgressDialog = False

«Turns off the Progress dialog box that usually appears during exporting or printing.»

Remarks

Use this property to indicate whether or not a progress dialog box should be displayed while the report is printed or exported. This property is set to True by default.

This property/method is available for subreports.

Data Type

Boolean

Availability

Design Time; Runtime

Related Report Engine Functions

PEEnableProgressDialog, Volume 2, Chapter 1

RecordsPrinted

RecordsPrinted specifies the number of records actually printed.

Syntax

[form.]Report.RecordsPrinted

For example:

Printed& = CrystalReport1.RecordsPrinted

«Fetches the number of records printed and stores it in the Printed variable.»

Crystal ActiveX Control Reference

230

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