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

Data Type

String

Availability

Design Time; Runtime

Related Report Engine Functions

PEExportTo, Volume 2, Chapter 1

PrintFileCharSepSeparator

PrintFileCharSepSeparator specifies the character(s) you want to use to separate the fields when printing to a file using the Character Separated Value format.

Syntax

[form.]Report.PrintFileCharSepSeparator [=Separator$]

For example:

CrystalReport1.PrintFileCharSepSeparator= “@”

«Specifies that the “@” character is to be used for separating field values.»

Remarks

Applies only when PrintFileType, Page 223, is 5 - Character-separated values.

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

This property/method is available for subreports.

Data Type

String

Availability

Design Time; Runtime

Related Report Engine Functions

PEExportTo, Volume 2, Chapter 1

Crystal ActiveX Control Reference

219

PrintFileLinesPerPage

PrintFileLinesPerPage specifies the number of lines to be printed before the page break. The default is 60 lines per page.

Syntax

[form.]Report.PrintFileLinesPerPage

For example:

CrystalReport1.PrintFileLinesPerPage = 50

«Fifty lines will be printed before a page break.»

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

Runtime

Remarks

This property/method is available for subreports.

PrintFileName

PrintFileName specifies the name of the file to which the report is to be printed.

Syntax

[form.]Report.PrintFileName[= FileName$]

For example:

CrystalReport1.PrintFileName = “c:\crw\cust_rpt.txt”

«Prints the report to a file named “cust_rpt.txt” in the C:\CRW directory.»

Remarks

You can double-click this property or click the ellipsis (...) in the Properties box to call up the Choose Print Filename dialog box. In that dialog box, select the name of the file and the path to which you want the program to print the report.

Select a value for this property only if you are printing to a file, if the value you assigned to the

Destination, Page 183, is 2 - File.

This property/method is available for subreports.

Crystal ActiveX Control Reference

220

NOTE: If you want to specify the PrintFileName at runtime, make certain that you enclose it in quotes in your code.

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

Data Type

String

Availability

Design Time; Runtime

Related Report Engine Functions

PEExportTo, Volume 2, Chapter 1

PrintFileODBCPassword

PrintFileODBCPassword specifies the password that you need to connect to the data source, whenever you want to export in ODBC format.

Syntax

[form.]Report.PrintFileODBCPassword[= Password$]

For example:

CrystalReport1.PrintFileODBCPassword = “merry%%5”

«”merry%%5” is the name of the password to connect to the data source.»

Remarks

This is only required if the ODBC datasource that you are exporting to requires a password.

This property/method is available for subreports.

Data Type

String

Availability

Design Time; Runtime

Crystal ActiveX Control Reference

221

PrintFileODBCSource

PrintFileODBCSource specifies the name of the data source to which you want to export, whenever you export in ODBC format.

Syntax

[form.]Report.PrintFileODBCSource[= DataSource$]

For example:

CrystalReport1.PrintFileODBCSource = “pickle”

«”pickle” is the name of the data source that you want to export to.»

Data Type

String

Availability

Design Time; Runtime

Remarks

This property/method is available for subreports.

PrintFileODBCTable

PrintFileODBCTable specifies the name of the table in the data source to which you want to export, whenever you want to export in ODBC format.

Syntax

[form.]Report.PrintFileODBCTable[= TableName$]

For example:

CrystalReport1.PrintFileODBCTable = “Employees”

«”Employees” is the name of the table in the data source to export to.»

Data Type

String

Crystal ActiveX Control Reference

222

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