Re: Entering escape codes for printing in Word 2003



Jay,

Many thanks for your response.

Well, I though I was sort of right in my efforts when I put in the { PRINT
Print 27"l2H } command, to select the manual tray on the printer. But my
document still wouldn't print correctly to my printer, a Xerox Phaser
8550DX. I though something might be funny my printer, so I got up into my
attic to bring down an old (+/- 10 years in the attic) HP LaserJet 4 Plus. I
installed this printer, and it fired up without problems (that's quality)
and yes the print command, selecting bins and paper sizes, works like a
charm!

Consequently, it's the Phaser that's got some problem with the PCL command,
not the Print field command in Word. I've contacted Xerox about the problem
and trust that I'll hear from them within a day, or so. I'll post back the
solution if the problem is solved.

Once again, many thanks Jay for your input, it's much appreciated.

Best regards,


Eric G
Stockholm, Sweden







"Jay Freedman" <jay.freedman@xxxxxxxxxxx> wrote in message
news:4im5r197g2oulfr8jh22fjbslt4kflg18l@xxxxxxxxxx
> Hi Eric,
>
> You can find a reference page for PCL5 codes at
> http://pcl.to/reference. For your specific question, go to
> http://pcl.to/reference/#pcl_paper_control.
>
> Translating the codes shown on that page (which is the way you'd find
> them in the HP PCL manual) to Word's Print field goes like this:
>
> - The guide shows an "EC" symbol that represents the "Escape code".
> This code has the decimal value 27, so that's the first thing in the
> Print field following the keyword. Everything else in the field needs
> to be enclosed in a pair of double quotes.
>
> - The next character in all the paper-control codes and many others is
> an ampersand (&). Other types of codes use a parenthesis or an
> asterisk in this position.
>
> - The code l2H corresponds to the manual feed tray. Other codes that
> look useful are l1H for Tray 1 and l4H for Tray 2. (Be sure to use a
> lower case ell before the number.)
>
> So the complete Print field for manual feed should be
>
> { PRINT 27"&l2H" }
>
> and the others are similar.
>
> I'm not sure how a macro would be involved in this process, other than
> to insert Print fields at specific places. I think it would be much
> easier to put the field directly in the template where it's needed. To
> satisfy your curiosity, though, it is possible to place an AutoNew
> and/or an AutoOpen macro in a specific template, and the code runs
> only when a document based on that template is opened.
>
> --
> Regards,
> Jay Freedman
> Microsoft Word MVP FAQ: http://word.mvps.org
> Email cannot be acknowledged; please post all follow-ups to the
> newsgroup so all may benefit.
>
> On Wed, 28 Dec 2005 10:07:25 -0600, "Suzanne S. Barnhill"
> <sbarnhill@xxxxxxxx> wrote:
>
>>If you don't get an answer here, try the experts in
>>microsoft.public.word.printingfonts.
>>
>>--
>>Suzanne S. Barnhill
>>Microsoft MVP (Word)
>>Words into Type
>>Fairhope, Alabama USA
>>Word MVP FAQ site: http://word.mvps.org
>>Email cannot be acknowledged; please post all follow-ups to the newsgroup
>>so
>>all may benefit.
>>
>>"Eric G" <someone@xxxxxxxxxxxxx> wrote in message
>>news:OCjl857CGHA.516@xxxxxxxxxxxxxxxxxxxxxxx
>>XPP SP2
>>Office 2003 SP2
>>
>>
>>
>>Hello,
>>
>>Is there anyone here that still remembers how to put in escape sequences
>>into Word?
>>
>> Many (many) years ago I did just that for the original LaserJet and the
>>LaserJet II, but have totally forgotten what, or how I did it, and,
>>unfortunately, I never kept the manuals.
>>
>>I want to automate some functions in templates, eg select a specific
>>printer
>>tray (cassette) for printing when creating a new document on a template.
>>The
>>commands to be entered are normal PCL 5 command.
>>
>>I think I know that you should use the Print field command, ie , and then
>>just enter the escape sequence for the specific tray, like { Print
>>27"l2H }
>>(Tray 1 in multi-*** mode). I got the 27" from a MS Knowledgebase
>>article
>>(ID : 78652, intended for Word 97), but that is obviously not the right
>>way
>>to generate an escape code for Word 2003, since it doesn't work at all.
>>
>>I guess this also could be achieved via a macro, but can you do an AutoRun
>>macro, that only runs when you open a specific template?
>>
>>Grateful for any ideas.
>>
>>Best regards,
>>
>>
>>Eric G
>>Stockholm, Sweden


.


Quantcast