Operating System - Microsoft
1826639 Members
3326 Online
109695 Solutions
New Discussion

Re: Printing to trays using Crystal Reports 9.0

 
Daniel Kent
Occasional Advisor

Printing to trays using Crystal Reports 9.0

I have a web based application created using Visual Studio .NET 2003 which includes Crystal Reports 9. I have set up reports to print to Upper, Middle, and Lower trays. However every printjob thru Crystal goes to the default tray.

I have tested printing to individual trays using word pad and selecting specific trays and it will print to the correct trays. But Crystal won't.

I have also updated the CrystalDecisions.CrystalReports.Engine.Dll as per the known bug ADAPT00102118 form Crystal. This had no effect.

I have played with the paper types etc. but this only forces the a new default tray where the reports are printed.

Anyone have any ideas where to go from here?
15 REPLIES 15
Norman_21
Honored Contributor

Re: Printing to trays using Crystal Reports 9.0

Hi,

I don't have experience with Crystal Reports 9 but I would advice you to check their knowledge base Atricles!!!

Hope this help
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Norman_21
Honored Contributor

Re: Printing to trays using Crystal Reports 9.0

Try the knowledge Base link and the Forums link:
http://www.businessobjects.com/services/support/default.asp

good luck
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Daniel Kent
Occasional Advisor

Re: Printing to trays using Crystal Reports 9.0

Unfortunately I have poured over their KB for days and everything I've found to date has not helped. Thanks for the suggestion.
Ganesh Babu
Honored Contributor

Re: Printing to trays using Crystal Reports 9.0

Hi Daniel,
What is the property u have used to choose the printer tray???

Ganesh

Daniel Kent
Occasional Advisor

Re: Printing to trays using Crystal Reports 9.0

The PaperSource="Upper" or "Middle" or "Lower" were my preferred sources but I have tried each of the following to no avail:

PaperSource.Upper 1
PaperSource.Auto 7
PaperSource.Cassette 14
PaperSource.Envelope 5
PaperSource.EnvManual 6
PaperSource.FormSource 15
PaperSource.LargeCapacity 11
PaperSource.LargeFmt 10
PaperSource.Lower 2
PaperSource.Manual 4
PaperSource.Middle 3
PaperSource.SmallFmt 9
PaperSource.Tractor 8

Does this answer your question?
Ganesh Babu
Honored Contributor

Re: Printing to trays using Crystal Reports 9.0

u r using PrintToPrinter method to print the page or the printer icon in the report???

Ganesh
Daniel Kent
Occasional Advisor

Re: Printing to trays using Crystal Reports 9.0

PrintToPrinter directly from code in a 2003 .NET browser based application.

Using something like the following:

Report.PrintOptions.PaperSource = PaperSource.Upper
Report.PrintToPrinter(1, False, 0, 0)
Daniel Kent
Occasional Advisor

Re: Printing to trays using Crystal Reports 9.0

Just for clarification I'm using the latest driver from HP. HP LaserJet 4200 PCL6
Ganesh Babu
Honored Contributor

Re: Printing to trays using Crystal Reports 9.0

first thing for debugging check whether the

report.printoptions.papersource is the same value that u have set after printtoprtiner method..

next try instead of the enumerated value Papersource.upper the direct value.. which is i think "1"

PaperSource.Upper 1

Ganesh
Daniel Kent
Occasional Advisor

Re: Printing to trays using Crystal Reports 9.0

Another quirk is that I can print from trays in my test environment but at production site it does not work. Unfortunately I do not have VS 2003 installed on the production server to debug with.. but I can try to build in a log to check your suggestions.
Daniel Kent
Occasional Advisor

Re: Printing to trays using Crystal Reports 9.0

Upper 1 syntax does not work. I have tried using CR 10 instead of 9 and the trays work. Thank you for the help.
Ganesh Babu
Honored Contributor

Re: Printing to trays using Crystal Reports 9.0

u upgraded to version 10 and the syntax upper 1 - worked??

Ganesh
Daniel Kent
Occasional Advisor

Re: Printing to trays using Crystal Reports 9.0

No. The original code "Upper" works with CR 10 (trial version) in the test environment. And in fact I now have CR 9 working in the test environment BUT can not get it to work in the production environment. The cost of CR 10 makes that solution impractical. This has to be a DLL version or permissions issue as far as I can tell. I have been working with CR's tech support but haven't gotten anything meaningful from them yet. It is odd because as far as I can tell I am using the same DLLs and have tried to match permissions.. Thanks again!
Ganesh Babu
Honored Contributor

Re: Printing to trays using Crystal Reports 9.0

I know.. most of the times we also had the same kind of DLL issue all the times. We use to reinstall them many times and We sometimes check each and every DLL and reregister them to make sure everything is fine.

Ganesh

Note:- Since u r a new user i think U should see this link about this forums
http://forums1.itrc.hp.com/service/forums/helptips.do?#28


Bill Weber
New Member

Re: Printing to trays using Crystal Reports 9.0

Any success on specifying the paper trays in Crystal 9 and Visual Studio.NET 2003. I have installed the Hot Fixes from Crystal, but the printer continues to print to the default tray.

Thanks in advance.