crystal report printing from 2 trays

Hi

I need an immediate help on this....am stuck up

I have a sales report and i need to print it from two different printer trays..i.e one tray is having "blue" paper
and the other one "pink". what excatly i need is i want my first page to print in the "Blue" paper and the rest
of the pagrs in "pink" paper..

Any help will be appriciated..
LVL 7
assystAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SpykairCommented:
What version of Crystal are you using ?

Spykair

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
assystAuthor Commented:
Am using Crystal Reports 10..

Can you please post me the code for doing so...
Its very urgent

OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

assystAuthor Commented:
am using delphi as the front end...
frodomanCommented:
Hi assyst,

You cannot accomplish what you are trying to do with Crystal.  Of course the user could always select print and print only the 1st page using one tray, and then click print again and select the other tray for pages 2+ -- but I'm assuming you want an automated approach and Crystal simply doesn't have that functionality.

The links that Spykair posted talk about printing to a specific printer tray, but that still won't allow you to print to two different trays for the same report.  The only solution I've heard of that works is to write an application that exports the report to some other format (PDF for example) and then have your application select a paper tray, print page 1, select a different paper tray, and print other pages.  I've never actually seen this work but have been told that it can.

frodoman

Ido MilletProfessor of MIS at Penn State Erie and Owner, Millet SoftwareCommented:
See list of 3rd-party tools at: http://www.kenhamady.com/bookmarks.html 

My Visual CUT software can automate the process of exporting the Crystal report to a pdf file and printing the resulting file through different printer trays based on a command line that specifies page ranges, printer, and printer trays:  "PDF_PRINT_SPLIT:Test.pdf>1::\\s1\HP::Top||2to99::\\s1\HP::Bottom"
Alternatively, it can do this based on formulas you place in the report itself that act as printer tray tags: "PDF_PRINT_SPLIT_TAG:c:\temp\Test.pdf>\\s1\HP"

- Ido

Mike McCrackenSenior ConsultantCommented:
To expand on spykair's and frodoman's idea, you could write and application that prints page 1 from tray 1 then resets the report and prints pages 2-end to tray 2.  This assumes you know where int he report you need to change trays.

As frodoman pointwed out it cannot be done directly from Crystal.

                crRpt.PrintOut False, intCopies, , intStartPage, intStopPage

Page 1
                crRpt.PrintOut False, , , 1, 1

Pages 2-
                crRpt.PrintOut False, , , 2, LastPage if known
if you don't know the last page try
                crRpt.PrintOut False, , , 2
or
                crRpt.PrintOut False, , , 2, 25

mlmcc
SpykairCommented:
Glad I could help.

Spykair
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.