Skip to Content
0
Former Member
Mar 30, 2011 at 09:30 AM

Custom Tray Selection wiht PrintOutputController

37 Views

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