field coding for duplex printing

M

Mathew Moore

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
 
G

Graham Mayor

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
M

Mathew Moore

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

Graham Mayor

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
M

Mathew Moore

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
 
G

Graham Mayor

You are welcome :)
What was the model of the printer?
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
M

Mathew Moore

hi graham, it is a Lexmark T644, we had the optional duplex unit and 2 extra
trays installed, however it seems the 3rd tray will be redundant from now on.
many thanks
 
G

Graham Mayor

Thanks - however looking at the product spec it does appear to have the
option to emulate PCL5 and 6 so in theory at least it can be made to work
with the Print command. Whether it can do this with the standard driver or
needs a universal PCL driver or a change to the product's setup I cannot
say. In the circumstances this is all rather acadamic :)

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top