Skip to content

PrintReport - cWinReport2

Outputs the current report to printer or viewer based on output_device_mode

Type: Procedure

Syntax

Procedure PrintReport

Call Example

Send PrintReport

Description

PrintReport outputs the current report to printer or viewer based on output_device_mode.

If output_device_mode is PRINT_TO_WINDOW or DEFERRED_PRINT_TO_WINDOW the viewer is invoked.

If the mode is PRINT_TO_PRINTER_NO_DIALOG the report is sent the the printer without invoking the print job dialog.

If the mode is PRINT_TO_PRINTER, the report is sent to the printer after invoking the print job dialog.

When a report is completed, the report object will send this message, causing your report to be printed or viewed as needed.

You should only send this message after a report is completed. Usually the report object will handle this process for you.