[英]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
我正在使用最新的Crystal Report版本服务PAck 13和Visual Studio 2012 and Framework is 4 Client Profile我尝试了一些代码,但是问题未能解决,我正在编辑注册表以检查其处置情况,但仍然有错误出现在注册表中我更改printjob的默认值是75,我将其替换为2以进行检查
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();
Do not use the " .Net Framework 4 Client Profile ". 不要使用“ .Net Framework 4客户端配置文件 ”。 Use the " .Net Framework 4 " instead.
请改用“ .Net Framework 4 ”。
Also, try appending the following to your app config file: 另外,请尝试将以下内容附加到您的应用配置文件中:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
</configuration>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.