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.»

Remarks

Select one of the following print file types if you are printing to a file, if the value you assigned to the Destination, 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.

6 - Tab separated text

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

7 - Crystal Reports (RPT)

Standard 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.

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.

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.

This property/method is available for subreports.

Data Type

Integer (Enumerated)

Availability

Design Time; Runtime

Related Report Engine Functions

PEExportTo



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com