Changing Printer Font at RunTime

Skc

Member
V9.1C GUI

Using Output to PRINTER, is there a way to change the font based on user's input at runtime? For eg. the progress.ini specifies PrinterFont=Courier New, size=9. If the user wants a bigger/smaller font based on his own choice and based on the particular report being printed, can it be done?

If it can't be done, then looks like the only other way is to use Output to filename and use adecomm/_osprint.p to print. But this requires all my report programs to be changed and more importantly, I am not so sure whether outputting to a file first is a good technique for printing.

Any ideas / comments?

Seah
 
I still use vesion 7.3, and I do the following:

PUT-KEY-VALUE SECTION "Startup" KEY "PrinterFont" VALUE "Courier New, size 7".

At the end of the report (after closing output), I put back the standard font again in this key value.
 
Hullo Babel

Thanks for your suggestion. I have already used a different way - ie. to use _osprint and passing it a font-no that is defined in the progress.ini file. It works this way too.

Thanks again.

Regards
 
Back
Top