View Single Post
  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default field coding for duplex printing

You are welcome
What was the model of the printer?
--

Graham Mayor - Word MVP

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



Mathew Moore wrote:
FAO Graham
i have managed to solve the problem, and i didn't have to use fields
codes. however many thanks for your very helpful response. the field
coding worked on another priner we have which has (PCL) at the end of
the name whereas the printer we use for main documents has (MS) at
the end, so i went into control panel, printers, printer properties,
advanced, printer defaults, and set the printer to print on long
edge(book format) i had tried this in the past but it never seemed
to work right, however it does now, so i have tray 1 on our headed
paper and 1 sided and then tray 2 plain paper on duplex.
just incase anyone else comes accross this problem. as it has taken
me over a month to sort this out.

many thanks again for your assistance

"Graham Mayor" wrote:

Are you using a PCL driver for the printer?
If the driver does not accept PRINT commands, then my second
suggestion would be the only viable option I can think of.

--

Graham Mayor - Word MVP

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



Mathew Moore wrote:
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