Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Unable to print report to tray 3

I am using Xerox Phaser 4510 DT to print checks and W2. When I try to print to tray 3 using PrintOptions.PaperSource the report always print to tray 1. I have to be able to dynamically set the printer and tray from my ASP.NET application at run time so manually configuring a different printer for each tray is not an option. I am using Crystal Reports XI Release 2 with Visual Studios 2005. I am able to print to tray 1 and 2 without any problems using the same code. Any help would be greatly appreciated.

Ha

oReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

oReport.Load(sFilePathW2);

oReport.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.DefaultPaperOrientation;

oReport.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperLetter;

oReport.PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.Lower;

oReport.Database.Tables[0].SetDataSource(ds.Tables[0]);

oReport.PrintOptions.PrinterName = sparmPrinterName;

oReport.PrintToPrinter(1, false, 0, 0);

Former Member
Not what you were looking for? View more on this topic or Ask a question