Skip to Content

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

CR 2008 Runtime incorrectly using default printer settings

Crystal Reports Runtime 2008 SP3 version 12.3.3.812

Windows Server 2008 R2

Progress OpenEdge 10.2B

I am having an issue printing Crystal based output. The following code is used to print the report. My issue is even though I set the printer to a non-default printer the default printer settings are still used. This seems to happen more often with Zebra printers but other printers as well.

crwReport = NEW CrystalDecisions.CrystalReports.Engine.ReportDocument().

crwReport:Load(ip-rpt-name).

crwPrinterSettings = NEW System.Drawing.Printing.PrinterSettings().

crwPageSettings = NEW System.Drawing.Printing.PageSettings().

crwReport:PrintOptions:CopyTo(crwPrinterSettings, crwPageSettings).

crwPrinterSettings:COLLATE = ip-collated.

crwPrinterSettings:Copies = ip-num-copies.

crwPrinterSettings:PrinterName = ip-printer-name.

crwReport:PrintToPrinter(crwPrinterSettings, crwPageSettings, FALSE).

What am I missing?

Thanks for the help.

Former Member

Helpful Answer

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