Changing the default printer
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Changing the default printer
To change the default printer for the session,
you can use the PRINTER–NAME option of the SESSION statement
as shown in the i-wchpr.p procedure.
i-wchpr.p
|
To change the default printer:
- Create
a variable for the output of
SESSION:PRINTER–NAME. - The
SESSION:PRINTER–NAMEattribute returns the name of the default printer. - The
SESSION:PRINTER–NAMEattribute sets another printer, \\AB1\hplaser, as the default printer. - The
OUTPUT TO PRINTERprints the report on the printer \\AB1\hplaser. - The
SESSION:PRINTER–NAMEattribute restores the original default printer.