Directing output to a printer
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Directing output to a printer
To direct output to your default printer, use the OUTPUT TO statement
with the PRINTER option. Remember to use the STREAM-IO option
in your frame phrases. STREAM-IO removes all graphical
characteristics of the widgets, leaving just the textual data.
You probably also want to use the PAGED option
of the OUTPUT TO statement to
create neat page breaks.
Try modifying i-10-09.p to send the report
to a printer, if you have one available. Alternately, add the PAGED option
to the OUTPUT TO statement, run
the report, and open tut-temp.txt in the Procedure Editor.
Notice that the AVM redisplays the labels for the current frame after a page break.
To direct output to a printer other than the default printer, use the Printer (-o) startup parameter to designate a specified printer for the OpenEdge session. For more information, see the reference entry for the Printer (-o) startup parameter in the Startup Command and Parameter Reference.