G
George Shubin
OK. I was finally able to get my documents to print to different logical
printers by using the following code:
Options.PrintBackground = False
' Print the appropriate number of copies for each section of the document.
ActivePrinter = "STAPLER" 'Assign Printer-Stapler
ActiveDocument.PrintOut Background = False, Range = wdPrintRangeOfPages,
Pages = "1-4"
ActivePrinter = "TOSHIBA 550" 'Assign Printer
ActiveDocument.PrintOut Background = False, Range = wdPrintRangeOfPages,
Pages = "5"
ActivePrinter = "STAPLER" 'Assign Printer-Stapler
ActiveDocument.PrintOut Background = False, Range = wdPrintRangeOfPages,
Pages = "6-7"
Options.PrintBackground = True
I had to use Options.PrintBackground=False for some reason. If I didn't,
all the documents would print to the first ActivePrinter designated.
BUT....
The print range doesn't work. The entire document prints 3 times. I tried:
Range = wdPrintRangeOfPages, Pages = "1-4"
and I tried
Range:=wdPrintFromTo, From:="1", To:="4"
Neither works as advertised. Am I doing something wrong?
Thanks.
printers by using the following code:
Options.PrintBackground = False
' Print the appropriate number of copies for each section of the document.
ActivePrinter = "STAPLER" 'Assign Printer-Stapler
ActiveDocument.PrintOut Background = False, Range = wdPrintRangeOfPages,
Pages = "1-4"
ActivePrinter = "TOSHIBA 550" 'Assign Printer
ActiveDocument.PrintOut Background = False, Range = wdPrintRangeOfPages,
Pages = "5"
ActivePrinter = "STAPLER" 'Assign Printer-Stapler
ActiveDocument.PrintOut Background = False, Range = wdPrintRangeOfPages,
Pages = "6-7"
Options.PrintBackground = True
I had to use Options.PrintBackground=False for some reason. If I didn't,
all the documents would print to the first ActivePrinter designated.
BUT....
The print range doesn't work. The entire document prints 3 times. I tried:
Range = wdPrintRangeOfPages, Pages = "1-4"
and I tried
Range:=wdPrintFromTo, From:="1", To:="4"
Neither works as advertised. Am I doing something wrong?
Thanks.