Output_Device_Mode - cWinReport2
Determines how the report is output
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer Output_Device_Mode
| Access Type | Syntax |
|---|---|
| Read Access: | Get Output_Device_Mode to IntegerVariable |
| Write Access: | Set Output_Device_Mode to IntegerVariable/Value |
Description
Output_device_mode determines how a report should be output. The following modes are supported: | Constant | Meaning | |---|---| | PRINT_TO_WINDOW | Output is sent to the Winprint Viewer. As the report is printed, the report can be viewed in the viewer. | | PRINT_TO_PRINTER | Output is sent directly to the printer. | | PRINT_TO_UNDEFINED | The report does not specify output - the parent ReportView's Output_device_mode will determine the mode. | | PRINT_TO_PRINTER_NO_DIALOG | Output directly to the printer without showing the print job dialog. | | DEFERRED_PRINT_TO_WINDOW | Output is sent to the viewer, however the viewer is not displayed until the report is finished. |
If the value of the Output_device_mode property is PRINT_TO_UNDEFINED, the default, and this object is in a report view or report panel, it will use this container's output_device_mode which defaults to PRINT_TO_WINDOW. If there is no report view, PRINT_TO_WINDOW will be used.
Normally, PRINT_TO_WINDOW is the mode of choice. It allows you to see the report in the viewer and it allows you to view the report as it is being generated.
If this mode is set, it should be set before the report run. If it is set within Starting_main_report it must be set before the message is forwarded.
Function Starting_Main_Report Returns Integer
Boolean bErr
Set Output_device_mode to PRINT_TO_WINDOW
Send DFSetMetrics wpm_cm
Send DFSetmargins 1 1 1 1
Forward Get Starting_Main_Report to bErr
Function_return bErr
End_Function // Starting_Main_Report