简体   繁体   中英

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();

Do not use the " .Net Framework 4 Client Profile ". Use the " .Net Framework 4 " instead.

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM