Skip to Content
0
Jan 13, 2011 at 01:40 PM

PrintToPrinter problem with Visual Studio 2010 and new release CR 13

72 Views

Hello,

I use Visual Studio 2010 and crystal report 13 to print some reports.

My report has been migrated from .Net 1.1 to 4.0 without problems.

But when I use PrintToPrinter method, I have some problem :

With xerox printer, the print put 30 second to out.

With another printer (HP), I have an error like :

System.Drawing.Printing.StandardPrintController.OnStartPrint(PrintDocument document, PrintEventArgs e) +208387

System.Drawing.Printing.PrintController.Print(PrintDocument document) +217

System.Drawing.Printing.PrintDocument.Print() +111

CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN) +470

CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN) +79

OSCAR.wfPrintThanksCustomers.BtReprint_Click(Object sender, EventArgs e) in C:InetpubwwwrootOSCARwfPrintThanksCustomers.aspx.vb:138

System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118

System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10

System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13

System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

What is the problem ?

Regards

Thanks