Using the field {PRINT 27 &l1S} for duplex in Word 2K

G

Gadget

I have a document that is automatically printed from another aplication - I
need it to print duplex no matter what the default printer is set to,
therefore I want to send the printer escape charicters for duplex to the
printer before printing.

I can send the command, and the printer understands it, but something weird
happens: it prints page 1, flips the paper, prints nothing, takes a new sheet
and prints page 2, flips the paper...

Anyone have any ideas what's going wrong?
(I have tried putting the command in page1, page2, in both, in the header of
each and both, and still can't get it to work!)
 
G

Graham Mayor

Gadget said:
Actually it's Word 2003 - sorry.

The syntax is { PRINT 27"&l1S" }however whether this will work is rather
dependent on whether the printer driver understands that particular duplex
command.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
G

Gadget

Graham Mayor said:
The syntax is { PRINT 27"&l1S" }however whether this will work is rather
dependent on whether the printer driver understands that particular duplex
command.
Either sintax "works" (well, they both send the same code - 'works' is a
relative term) I'm fairly sure you only really need the quotes if you are
sending multiple words .

The printer does understand the code and it does flip the page to print on
the other side after page 1 is printed, but the next page grabs a new peice
of paper instead of printing on it's reverse.
 
G

Gadget

Sorted:

There is another printer code {PRINT 27 &a0G} that is "page selection - next
side"; this has to go at the top of* each page after the duplex command on
the first page.


* although the help files and knowledge base articals regarding this state
that it should be at the top of the page, the switching to duplex can be
anywhere on the first page (even in the footer) and only needs to be done on
the first page. (I've not experimented with the "next page" positioning yet)

Tip: I put the duplex code is in the header, inserted a "section break (next
page)" so that section 2 started on page 2. I then de-selected the "same as
previous" button for section 2's header and changed the printer code to the
"next page" so that it would roll to every page thereafter.
 
G

Graham Mayor

Arguably it doesn't understand the code, because it is not providing the
correct or complete action. Word will only produce the results that the
printer driver will allow. I would check to establish whether there's an
updated driver - and in the case of HP printers, there probably will be -
http://www.hp.com/pond/ljbeta/

Did you put the code at the beginning of the document?
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
G

Graham Mayor

Thanks for the update!

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Top