Hi:
I just realized that changing oWord.ActivePrinter to some other printer will change the Default printer in Windows. As a word around, I save the current oWord.ActivePrinter and set it back after PrintOut():
LOCAL lcDefaultPrinter
lcDefaultPrinter = oWord.ActivePrinter
oWord.ActivePrinter = "Some Other Printer"
oDocument.PrintOut()
oWord.ActivePrinter = lcDefaultPrinter
Is there a better way of setting the printer in Automation that does not change the current Windows default printer?Thanks!