View Single Post
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Mathew Moore[_2_] Mathew Moore[_2_] is offline
external usenet poster
 
Posts: 4
Default field coding for duplex printing

many thanks graham, this is what i tried from the other discussion. i have
put the code at the beginning of the document where i want it to print
duplex, the the other code to revert it back at the end of the document.
however it seems to print one line of what can only be described as
gobbledigook on the back of each page and seems to want to print this forever.
any further advice would be greatly appreciated.

"Graham Mayor" wrote:

If your printer driver accepts PCL commands, you may be able to use a PRINT
field. A PRINT field is simply a type of field that allows you to send
instructions directly to the printer.

There are 3 possible data values for duplex setting: PRINT 27"&l0S" simplex
PRINT 27"&l1S" vertical duplex . PRINT 27"&l2S" horizontal duplex
(bookformat)

The codes after PRINT are 27 (escape), double quote, ampersand, lowercase L,
0, 1 or 2, uppercase S and finally terminated with a double quote.

Thus for horizontal duplex you would insert the following field :
{ PRINT 27"&l2S" }

Insert the field at the start of the range that you wish to be printed
duplex and revert to simplex at the end.

Alternatively install a second copy of the printer driver. Have one
configured to print duplex, the other to print simplex, then print the
simplex pages to the appropriate driver and the duplex pages to the other -
see http://www.gmayor.com/fax_from_word.htm for more on switching between
printers.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Mathew Moore wrote:
hello, i have read one of the discussions regarding setting duplex
printing within a word document and am having the same problem. i am
trying to do a similar
thing with the duplex printing i.e code it into a word template, i
have followed the instructions given in that discussion using the
field codes for printing, however when i then try and print the
document from our client database (we use open gi if you have heard
of it) it tries to print one line of random text and so far i have
let it get to approx 20 pages before switching off the printer and
starting again. do i need to input another field to stop the duplex
at the end of the document, i presume i must be doing something
wrong. my ideal result would be to print tray 1 single sided and
then tray 2 duplex, for that would i put the field code
where i want it to start duplex printing. your help would be very
much appreciated, oh and the templates are set in word 2003, but
someof the computers are running word 2007.
many thanks

mathew