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

Availability

Design Time; Runtime

Remarks

This property/method is available for subreports.

PrintFileODBCUser

PrintFileODBCUser specifies the User ID that you need to connect to the data source, whenever you export in ODBC format.

Syntax

[form.]Report.PrintFileODBCUser[= UserID$]

For example:

CrystalReport1.PrintFileODBCUser = “LisaB”

«”LisaB” is the User ID needed to connect to the data source.»

Data Type

String

Availability

Design Time; Runtime

Remarks

This property/method is available for subreports.

PrintFileType

PrintFileType specifies the type of print file to use when printing a report to a file.

Syntax

[form.]Report.PrintFileType[= FileType%]

For example:

CrystalReport1.PrintFileType = 1

«Prints the report to a file in a tab separated format.»

Crystal ActiveX Control Reference

223

Remarks

Select one of the following print file types if you are printing to a file, if the value you assigned to the

Destination, Page 183, is 2 - File.

0 - Record

Record style (columns of values). Does not use commas or separators. Outputs every record with a fixed field width.

1 - Tab separated

Tab separated values. Presents data in tabular form. Encloses alphanumeric field data in quotes and separates fields with tabs.

2 - Text

Text style. Saves the data in ASCII text format with all values separated by spaces. This style looks most like the printed page.

3 - DIF

Saves the data in DIF (data interchange format) format. This format is often used for the transfer of data between different spreadsheet programs.

4 - CSV

Comma separated values. Encloses alphanumeric field data in quotes and separates fields with commas.

5 - Character Separated

Saves the data as character separated values in ASCII text format. All values are separated by a character or characters specified by the PrintFileCharSepSeparator, Page 219.

6 - Tab separated text

Saves the data in ASCII text format with all values separated by tabs.

7 - Seagate Crystal Reports (RPT)

Standard Seagate Crystal Reports (RPT) format is used. Most often used for sending the report to another user via e-mail.

8 - Excel 2.1 XLS

Exports the report as a Microsoft Excel 2.1 worksheet.

9 - Excel 3.0 XLS

Exports the report as a Microsoft Excel 3.0 worksheet.

Crystal ActiveX Control Reference

224

10 - Excel 4.0 XLS

Exports the report as a Microsoft Excel 4.0 worksheet.

11 - Lotus 1-2-3 WK1

Exports the report as a Lotus 1-2-3 WK1 format worksheet.

12 - Lotus 1-2-3 WK3

Exports the report as a Lotus 1-2-3 WK3 format worksheet.

13 - Lotus 1-2-3 WKS

Exports the report as a Lotus 1-2-3 WKS format worksheet.

14 - Quattro Pro 5.0 WB1 (16-bit only)

Exports the report as a Quattro Pro 5.0 WB1 format file.

15 - RTF

Saves the data in Rich Text Format.

16 - Word for DOS (16-bit only)

Uses the Microsoft Word for DOS format to save the data in the report.

17 - Word for Windows

Uses the Microsoft Word for Windows format to save the data in the report.

18 - WordPerfect (16-bit only)

Uses WordPerfect format to save the data in the report.

19 - Excel 5

Uses Excel 5 format to save the data in the report.

20 - HTML 3

Uses HTML 3 format to save the data in the report.

21 - HTML Internet Explorer

Uses the Internet Explorer version of HTML to save the data in the report.

22 - HTML Netscape

Uses the Netscape version of HTML to save the data in the report.

Crystal ActiveX Control Reference

225

23 - HTML Netscape

Saves the data in ASCII text format, broken into pages.

24 - ODBC

Exports to a database format corresponding with an ODBC data source that you specify.

NOTE: If you specify a table name for PrintFileODBCTable that already exists in the database, you will receive an error stating that the table already exists.

25 - Paginated Text

Text style. Saves the data in ASCII text format with pagination information.

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

This property/method is available for subreports.

Data Type

Integer (Enumerated)

Availability

Design Time; Runtime

Related Report Engine Functions

PEExportTo, Volume 2, Chapter 1

PrintFileUseRptDateFmt

PrintFileUseRptDateFmt specifies, when printing to a file, whether or not the program should save dates in the same date format (MDY, DMY, etc.) that is used in the report or instead optimize the dates for the file format you have selected.

Syntax

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

For example:

CrystalReport1.PrintFileUseRptDateFmt = 1

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

Crystal ActiveX Control Reference

226

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