ProvideX V8.20 > Language Reference > 8. Special Files and Devices
752
*WINDEV*
          Raw Print Mode
Formats
1. Open Device File: OPEN (chan[,fileopt])"*WINDEV*[;Q_name]"
2. Open for Read-Only Mode: OPEN INPUT (chan[,fileopt])"*WINDEV*[;Q_name]"
3. Open for [WDX]: OPEN [INPUT] (chan[,fileopt])"[WDX]*WINDEV*[;Q_name]"
Where:
chan
Channel or logical file number; e.g., OPEN (1)"*windev*"
File options. Supported options for opening *WINDEV* include:
fileopt
ERR=stmtref Error transfer.
OPT=string$ File open options. See About File OPEN Options, p.232.
To obtain the current OPT= value, use the OPT( ) Function, p.493.
Q_name
Print queue to open. If this information is omitted, the standard
Windows printer dialogue appears at run time (users can select from a
list of printers and properties.) Valid Q_name options include:
· OS name of an existing physical print queue on the local Windows
machine; e.g., open(14)"*WINDEV*;HP LaserJet".
· OS name of a print queue ON actual resource (via UNC path
\\machine\resource for shared printers, or LPT# for direct access to a
local port); e.g.,
OPEN (14)"*WINDEV*;HP LaserJet ON \\Main_Server\HP Laser"
OPEN (14)"*WINDEV*;LP ON LPT1"
· One of the following queue selection keywords:
ASIS
Most recently selected printer and properties.
DEFAULT Printer currently "Set As Default" in the system; e.g.,
OPEN (30,ERR=9900)"*WINDEV*;DEFAULT".
NORMAL Normal dialogue with page range (no paper size, source tray).
SETUP
Setup dialogue with paper size, source tray (no page range).
The Q_name is optional. *WINDEV* does not t support queue option
settings (graphical printer properties in the Windows Printer dialogue
box such as: orientation=landscape;copies=3). See also Printing
in Windows, User's Guide.
[WDX]
*WINDEV* is specific to Windows operating systems. Under UNIX,
ProvideX automatically directs *WINDEV* access to the WindX client; e.g.,
OPEN (14)"*windev*" ! For the PC client from UNIX host.
In a Windows Server environment, the *WINDEV* printer is opened
relative to the host unless you prefix the printer name with [WDX]; e.g.,
OPEN (14)"*winprt*" ! For Windows Server
OPEN (14)"[WDX]*winprt*" ! For client workstation
*WINDEV* Keyword, not case-sensitive. Special device filename, enclosed in
quotation marks within OPEN directive. (Include asterisks in syntax.)