7 replies
by dklippert
Here's the code you need:
Type the Q number in the search box at support.microsoft.com
Set Duplex Printing for Word Automation
Q230743
Also look at:
http://www.mvps.org/word/FAQs/MacrosVBA/SetDuplexOnOff.htm
(There are no spaces in theURL)
by dklippert
I agree that it seems to compex for something so straight forward. Word, howver, has a problem making printer changes. Even SendKeys won't accompish what you want.You can get the PS/PCL printer code and embed that in a documnet or use the macro suggested.
One solution that works for some people is to set up a second Printer shortcut with duplex settings. The switch printers to duplex.
Quoting MS:
"Microsoft Word for Windows does not provide a method for Automation clients to set the duplexprint flag before starting a print job. Although there is a parameter in the PrintOut method that indicates support for duplex printing, the parameter does not provide true duplex printing and may not be available depending on your operating system or installed language. However, developers can work around this limitation on Windows systems by changing the duplex flag for the active printer driver before calling Word's PrintOut function."
by dklippert
If the macro was too complex, try Printer Escape codes.
How to Send Printer Escape Codes from a Document
Q211623
&l#S
Where =ASCII 27 (Chr#(27))
l=lowercase L,
Simplex or duplex is indicated by the number in the# spot.
#=0 (simplex), 1 (long edge duplex) or 2 (short edge duplex)
http://itsa.ucsf.edu/~rpb/hppcl.html
"Printer commands always begin with the escape character (EC).
For Microsoft Word
Hold down Alt and type 027 on the numeric keypadYou'll see a left pointing arrow. <--"
Probably would solve the problem but, being a bit of a coward, and the problem relating to a work computer system have decided not to try your solution. The only comment I got when I forwarded it on to our "IT helpline" is a rather grudging "it would probably work" so, if difficulties were experienced, I don't think there would be much backup there!
Many thanks,
I will (try to) now close this topic.
Many thanks for your prompt Answer 2.
Hope you don't mind, but I will try to run this past my work IT support contact - I think he found your Answer 1 way beyong his capabilities as I got no feedback at all!
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending