Hi Rudy,
> When i run this script with $printer set to printerA and i do wait to
> give a cariage return until i did run the script in a second form with
> $printer set to printerB. The both script will print as active printer
> printerB. This means that the assingment of Activeprinter is done for
> all instances which are running.
Yes, changing the ActivePrinter in Word changes the default printer for
Windows, and will "of course" change the printer for all instances of
Word.
If you turn background printing in Word OFF
(Application.Options.PrintBackground = false) then all print jobs should
be processed synchronously, rather than asynchronously.
As I recall, there's also an old WordBasic command you can use to change
the printer that won't change the Windows default printer. Not sure how
using it will affect other Word documents, though. You should be able to
find the old WordBasic command in an article on word.mvps.org
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)