SYSTEM-DIALOG PRINTER-SETUP statement
(Windows only)Displays the Windows Print dialog box and lets the user set the default print context for subsequent print jobs in Windows.
Note: Does not apply to SpeedScript programming.Syntax
NUM-COPIESexpression
Specifies the initial value of the Copies field in the Print dialog box. The valueexpression
must evaluate to an integer expression. The user can change this value within the dialog box. This option is supported only with printer drivers that support multi-copy printing. Otherwise, the Copies field is disabled.LANDSCAPE
Specifies the initial value of the Orientation field in the Properties dialog box as landscape. The user can change this value within the dialog box. The Properties dialog box is accessible from the Print dialog box. This option is supported only with printer drivers that support landscape page orientation.PORTRAIT
Specifies the initial value of the Orientation field in the Properties dialog box as portrait. The user can change this value within the dialog box. The Properties dialog box is accessible from the Print dialog box. This option is supported only with printer drivers that support portrait page orientation.UPDATEstatus
IN WINDOWwindow
ExampleThis example presents a dialog box that allows you to set up and print information from the sports database. When you choose the Printer Setup button, it displays the Windows Print dialog box. Using the latest settings, you can then print a list of customer names from the sports database in alphabetical order by choosing the Print Customer Names button.
Notes
- The default print context is the set of values that defines the default printer and setup for that printer in Windows. If there is no default print context, the AVM uses the printer control settings from the current environment.
- Use the PRINTER-NAME attribute of the SESSION system handle to set the printer name in the default print context without user intervention.
- By default, the OUTPUT TO PRINTER statement prints jobs based on the default print context. However, you can use the OUTPUT TO PRINTER statement with its various options to override the default print context for a specific print job.
See also
OpenEdge Release 10.2B
|