我有C#WinForm程序,它运行sql-server查询并填充crystal-report。
当我从查询中获得一点数据时 - 它的效果非常好。
但是当我从查询中获得大数据时 - 我收到了这个错误:
加载报告失败
我填写数据集的代码:
SQL = "select * from MyTable";
dsPrint = new DataSet();
dsPrint = dbSQL.fill_Dataset(SQL, "Table");
我打开水晶报告表格的代码:
Form PI = new frmPrint();
PI.ShowDialog();
PI.Close();
PI.Dispose();
GC.Collect();
以我的形式保存水晶报告代码(表格已激活):
PP = new CryREP();
PP.SetDataSource(dsPrint);
PP.PrintOptions.PrinterName = MyParam.Printer;
crystalReportViewer1.ReportSource = PP;
crystalReportViewer1.Zoom(100);
PP.Refresh();
并在表单FormClosing上:
PP.Dispose();
crystalReportViewer1.Dispose();
PP.Clone();
GC.Collect();
我尝试了一切,我已经气馁了):
修改
这是完整的错误日志
System.Runtime.InteropServices.COMException (0x80000000): The maximum report processing jobs limit configured by your system administrator has been reached.
ב- CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
ב- CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
ב- CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
EDIT2:
我也试试这个:
HKEY_LOCAL_MACHINE/SOftware/Crystal Decisions/Report Application Server/InprocServer/ReportDocument
Change the value of the field MaxNumOfRecords to -1(For Unlimited No. of records)
但仍然 - 同样的错误......