Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PCL Codes to Select Input Tray

Status
Not open for further replies.

ScottWebb

Programmer
Nov 17, 2001
13
0
0
GB
With a HP8150 printer.

I've got a report which generates a number of 2 page letters. I'd like to be able to print the first page of each letter on headed notepaper from tray 4, and second page of each letter on a continutation sheet from tray 2.

I've tried creating a formula with which is inserted into the page header like this:

IF PageNumber = 1 THEN Chr (27)+"&l20H" ELSE Chr (027)+"&l1H"

The page number is reseting every two pages. But when I print it, the codes have no effect, the default printer tray is used and the codes appear on the printed letters.

I have tested the codes from within word and they work as I would expect.

Anyone any idea why it doesn't work in Crystal and perhaps suggest a solution. (And running the report through VB isn't an option.)

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top