Created On: 10 October 2010
Problem:
While a program is running if the user changes the default printer or the print orientation, the program does not recognize the default printer or orientation has been changed.
Resolution:
In order to be able to “refresh” the printer’s information, it is necessary to reset the printer info already in the program .
Immediately after update the printer list or modify the orientation you need to reset your printer info with the following operands:
* Reset printer info
CALL "WIN$PRINTER" USING WINPRINT-SET-JOB -1.
That is the opcode WINPRINT-SET-JOB with a -1 value.
After that, user can obtain again the default printer information with:
CALL "WIN$PRINTER"
USING WINPRINT-GET-CURRENT-INFO-EX, WINPRINT-SELECTION
GIVING RESULT.
Immediately after update the printer list or modify the orientation you need to reset your printer info with the following operands:
* Reset printer info
CALL "WIN$PRINTER" USING WINPRINT-SET-JOB -1.
That is the opcode WINPRINT-SET-JOB with a -1 value.
After that, user can obtain again the default printer information with:
CALL "WIN$PRINTER"
USING WINPRINT-GET-CURRENT-INFO-EX, WINPRINT-SELECTION
GIVING RESULT.
Incident #2469896
Old KB# 31920



