[Migrated content. Thread originally posted on 19 February 2009]
I have a printer that supports printing on both sides but I can't get it to work with acucobol 8.1. This is the code. Can anyone tell me what I'm doing wrong. I can set WINPRINT-CURR-COPIES but not WINPRINT-CURR-DUPLEX. TIAINITIALIZE WINPRINT-SELECTION.
CALL "WIN$PRINTER" USING WINPRINT-SETUP.
* Get printer defaults.
CALL "WIN$PRINTER" USING WINPRINT-GET-CURRENT-INFO-EX
WINPRINT-SELECTION.
DISPLAY "WINPRINT-CURR-COPIES = " WINPRINT-CURR-COPIES
DISPLAY "WINPRINT-CURR-DUPLEX = " WINPRINT-CURR-DUPLEX.
MOVE 2 TO WINPRINT-CURR-COPIES.
MOVE 3 TO WINPRINT-CURR-DUPLEX.
* Set the printer # of copies
INITIALIZE WINPRINT-CURR-COLLATE.
CALL "WIN$PRINTER" USING WINPRINT-SET-PRINTER-EX
WINPRINT-SELECTION.
* Get printer defaults.
CALL "WIN$PRINTER" USING WINPRINT-GET-CURRENT-INFO-EX
WINPRINT-SELECTION.
DISPLAY "WINPRINT-CURR-COPIES = " WINPRINT-CURR-COPIES
DISPLAY "WINPRINT-CURR-DUPLEX = " WINPRINT-CURR-DUPLEX.



