Use the SETUP keyword in your OPEN directive when you want the user to be presented with a printer selection dialogue that includes paper size and source tray options (but no page range option).Īll settings will be displayed in the printer selection dialogue - users can accept the current settings or alter them. Users can accept the current settings or alter them. Use the NORMAL keyword with your OPEN directive when you want the user to be presented with a printer selection dialogue that includes a page range option ( but no paper size or source tray options).Īll settings will be displayed in the printer selection dialogue when the user sees it. *WINPRT* allows you to override printer settings with the DEFAULT option, but the changed properties must be valid for the appropriate driver. OPEN (2)"*WINPRT* DEFAULT copies=5 orientation=landscape offset=300:600" If the default printer is "Bills Desk - Canon", then the print jobs in the examples below will be sent to that Canon printer: Again, users will not have access to the printer selection dialogue and cannot alter the settings at run time. Use the DEFAULT keyword to OPEN the printer that is currently set as the default in Windows. OPEN (2)"*WINPRT* ASIS file=hello.txt" Note: *WINPRT* allows you to override printer settings with the ASIS option, but the changed properties must be valid for the appropriate driver. Users do not have access to the printer selection dialogue at run time and cannot alter the settings. All settings for queue options will be identical to the previous selection. Use the ASIS keyword to access the most recently selected printer and its previous settings. OPEN (2)"*WINPRT* Bills Desk - Canon orientation=landscape copies=3" For instance, if the Control Panel folder records the name as HP LasertJet on LPT1, simply use HP LaserJet as the queue name in your directive. To assign a specific printer, use the print queue's name as it appears in the Printers folder of the Control Panel on the local system (this is assigned to the printer when it is first installed on the OS). If a print queue name is specified along with *WINPRT* (or *WINDEV*), then the dialogue will not be displayed, and output is sent to the printer automatically at run time.
When *WINPRT* (or *WINDEV*) are used in an OPEN statement without options or queue names, the user will be presented with the default Windows print manager selection dialogue at run time. See *WINPRT Windows Printing and *WINDEV Raw Print Mode. This section focuses on the access and control of hard copy print destinations from PxPlus in Windows (and WindX) primarily through *WINPRT* and *WINDEV*.
It sends output using a pass-through mode, which tells the printer driver to read the raw data and queue the job. This interface accepts the raw print escape sequences that are otherwise ignored in the Windows print system. *WINDEV* supports the direct-to-device printing methods associated more with legacy and/or converted applications.
bitmap images and proportional fonts) and employ a full suite of PRINT options and mnemonics.
It allows your application to print any variety of character and graphical output (i.e. The standard interface, *WINPRT*, is designed to handle typical hard copy print requests. Logical device names for printing to file types in Windows are described under Logical Printers. When used in an OPEN statement, these devices will invoke the print subsystem API at run time.
PxPlus for Windows includes two logical device names for accessing Windows printers: *WINPRT* and *WINDEV*.