Destination
Destination specifies the destination to which your report is to be printed (Window, Printer, File or Mail).
Syntax
[form.]Report.Destination[= Destination%]
For example:
CrystalReport1.Destination = 0
«Sends the specified report to print to a window.»
Remarks
Select one of the following print destinations:
- 0 = Window (Sends the report to a preview window.)
- 1 = Printer (Sends the report to a printer.)
- 2 = File (Prints the report to a disk file for printing at a later time or for importing into other applications. If you select this property, you will also have to set thePrintFileName, and the PrintFileType.)
- 3 = E-mail via MAPI (Sends the report to another person on your network via MAPI e-mail (Microsoft Mail). The report is attached to the e-mail letter in the format specified by the PrintFileType.)
- 4 = E-mail via VIM (Sends the report to another person on your network via VIM e-mail (cc:Mail). The report is attached to the e-mail letter in the format specified by the PrintFileType.)
- 5 = To Notes (Sends the report to a Lotus Notes destination.)
- 6 = To Exchange Folder (Sends the report to a Microsoft Exchange folder).
This property/method is available for subreports.
Data Type
Integer (Enumerated)
Availability
Design Time; Runtime
Related Report Engine Functions
PEOutputToPrinter
PEOutputToWindow
PEExportTo