Duplex Printing Quandry

J

Janie

I used Jonathan West's cool stuff mentioned in previous post. My wrinkle is
I need to go to a printer that is not my default. However, when I implement
West's code, my stuff goes to the right printer, but still doesn't come out
duplex. What did I miss? I copied all the code from West's article
"Controlling the Printer from Word VBA" part 2 and pasted it into my module.
The only change was to the PrintDuplexBooklet sub:
Sub PrintDuplexBooklet()
ActivePrinter = "\\conetworkname\hp9760"
Dim iDuplex As Long

iDuplex = GetDuplex 'save the current setting
SetDuplex 3 'set for vertical binding
ActiveDocument.PrintOut Background:=False
SetDuplex iDuplex 'restore the original setting
End Sub

Well, it is going to right printer A-OK -- just not duplex. What did I
skip???

Many thanks (luv yr stuff, Jonathan!)

Janie
 
J

Jonathan West

You are printing to a network printer. Do you have a local copy of the
driver installed?
 
J

Janie

Doesn't that sort of run counter to using network printers? (Printers are not
my area of experitise)? I am able to use that printer, but I don't recall
ever being required to install drivers for any of my network printers on my
local computer.

So are you saying the code won't work for a netowrk printer?
 
J

Jonathan West

Janie said:
Doesn't that sort of run counter to using network printers? (Printers are
not
my area of experitise)? I am able to use that printer, but I don't recall
ever being required to install drivers for any of my network printers on
my
local computer.

So are you saying the code won't work for a netowrk printer?

The code will work for a network printer provided that a driver for it is
installed locally. As far as I am aware, Microsoft hasn't published any API
for controlling a printer that does not have a locally installed driver
available.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top