Printer (-o)
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Specifies the printer to use.
| Operating system and syntax | UNIX / Windows |
-o
printername
|
||
|---|---|---|---|---|
| Use with | Maximum value | Minimum value | Single-user default | Multi-user default |
| Client Session | — | — | System dependent1 | System dependent1 |
- printername
-
Identifies the printer to use when processing the
OUTPUT TO PRINTERstatement in procedures.
In Windows, use Printer (-o) followed by the name of the printer port. For example:
|
If you do not use the -o parameter, the AVM uses the printer specified as
the default printer.
On UNIX, use Printer (-o) followed by the name of the spooler and any necessary parameters.
If you do not use the -o parameter, the AVM defaults to lp
(System V) or lpr (BSD). If you are passing arguments with this parameter
and are using a script such as PRO or one of your own, enclose the entire string in quotes
so the argument to -o is returned as a single value when passed to the
OpenEdge module. For example:
|
The AVM uses the spooler or printer port named at execution time rather than using the name at compile time. That way, precompiled procedures work regardless of which spooler or printer port is in effect.
To use a print spooler with spooler parameters, use
OUTPUT TO PRINTER and specify the spooler
parameters with -o, as in the following commands:
|
|