Discussion Locked

Creation of Duplexing Macro in Word 2000

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Can anyone please provide/point me to an idiot's step by step guide to creating a macro which will switch on the duplexing (printing on 2 sides of a sheet of paper) facility and another for switching duplexing off again so printing is once again taking place on 1 side of paper only?

7 replies

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. <--"

by nicki.ansdale

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.

by nicki.ansdale

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.