cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Tray Selection wiht PrintOutputController

Former Member
0 Kudos

Hello,

We have upgraded to VS 2010 with Crystal Reports for .NET 2010 (Sp1). We have also changed our printing procedure from

rpt.PrintToPrinter

to

rpt.ReportClientDocument.PrintOutputController.PrintReport

But now we have a problem selecting the right tray, because the CustomPaperSource property is not available in the PrinterOptions. The Papersources from the CrystalDecisions.ReportAppServer.ReportDefModel.CrPaperSourceEnum don't work (It always uses the default tray). Setting the RawKind ID directly as papersource does not help.

I have seen some older threads about this issue and appearently there is a utitly to help analyse the printer, but the links in the article were too old.

The printer is a HP Laserjet 8000

Any advice is appreciated,

Jaco van der Plas

Edited by: Jaco van der Plas on Mar 30, 2011 11:31 AM

Accepted Solutions (1)

Accepted Solutions (1)

Adam_Stone
Active Contributor
0 Kudos

I believe that you want to use the PrintReportOptions.Bin or BinName properties, they were added to better handle this.

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks a lot, that did the trick!

Jaco