lundi 20 avril 2015

Crystal Report Error Exceed PrintJobLimit

i'm Using Latest Crystal Report Version Service PAck 13 and Visual Studio 2012 and Framework is 4 Client Profile some codes which i was try but issue not solve i was edit my registry for checking its disposing or not but still error is coming here is Registry where i change printjob Default is 75 and i replace with 2 for checking purpose

HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\REPORT APPLICATION SERVER\Server\PrintJobLimit

below All code did not work clean the object from memory my Client pissed me Please i need help how to solve it

 using (ReportDocument doc = new ReportDocument())
                                    {
                                        doc.Load(Application.StartupPath + @"\SaleFormat1.rpt");
                                        doc.SetDataSource(ds);
                                        doc.PrintToPrinter(Convert.ToInt32(nordt.Rows[0][2]), true, 1, 1000);
                                    }

ReportDocument doc = new ReportDocument();
doc.Load(Application.StartupPath + @"\SaleFormat1.rpt");
                                        doc.SetDataSource(ds);
                                        doc.PrintToPrinter(Convert.ToInt32(nordt.Rows[0][2]), true, 1, 1000);
doc.Close();
doc.Dispose();

Aucun commentaire:

Enregistrer un commentaire