[Migrated content. Thread originally posted on 16 November 2007]
Questions first:1) If there is anything for the WINPRINT-PORT, it will be filled in automatically upon your call to WINPRINT-GET-CURRENT-INFO-EX. It is not to be set prior to this call.
2) No. using WINPRINT-SET-PRINTER-EX only affects the ACUCOBOL-GT runtime, it has no effect on Word.
What I would do, is to figure out what the difference is.
First, create a COBOL program that fetches all installed printers on the machine and write the names to a file.
Then write a cobol program that inquires ActivePrinter for its current presentation.
Please compare then, the name of the printer as returned from ActivePrinter and the corresponding value in the listing you generated. I have no idea what to expect, but evidently the problem is in the naming convention.



