Progress
Language Reference
SYSTEM-DIALOG PRINTER-SETUP Statement
Displays the Windows Print dialog box and lets the user set the default print context for subsequent print jobs in Windows.
SYNTAX
NUM-COPIES expression
Specifies the initial value of the Copies field in the Print dialog box. The value expression 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.
UPDATE status
Specifies a logical variable to return the status of the user’s dialog interaction. If the user chooses the OK button, the dialog sets status to TRUE. If the user chooses the Cancel button, the dialog sets status to FALSE.
IN WINDOW window
Specifies the window from which the Print dialog box is displayed. The value window must be the handle of a window.
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 on Windows. If there is no default print context, Progress 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
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |