Crystal报表超出处理作业限制 [英] Crystal report exceed processing jobs limit

查看:64
本文介绍了Crystal报表超出处理作业限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误:



已达到系统管理员配置的最大报告处理作业限制。



在线研究了这个主题后,我找到了一些解决方案,设置了注册表值,特别是HKEY_LOCAL_MACHINE \ SOFTWARE \ Business Objects \Suite 12.0 \ Report Application Server \ ProcessServer \PrintJobLimit为-1,但是这个解决方案不起作用,如果我在我的代码中添加了水晶报告处理和关闭功能,我生成的水晶报告将为空。下面是我的aspx代码:





i am getting error :

The maximum report processing jobs limit configured by your system administrator has been reached."

Having researched the topic online i found some solution,set registry value, specifically HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Report Application Server\InprocServer\PrintJobLimit to "-1" ,but this solution is not working,if i adding crystal report dispose and close function in my code,the crystal report i generated will be empty. Below are my aspx code:


<asp:DropDownList ID="dllselection"  onchange="javascript:return dropdown(this);" runat="server" Style="border: groove" CssClass="form-control" AutoPostBack="true">
                    <asp:ListItem Text="On Job Training" Value="3"></asp:ListItem>
                    <asp:ListItem Text="Training Effectiveness Form" Value="4"></asp:ListItem>
                </asp:DropDownList>
<asp:Button ID="Button1" runat="server" Text="Generate" CssClass="btn btn-success" OnClick="Button1_Click" />
        <div id="dvReport">
            <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" ToolPanelView="None" EnableDatabaseLogonPrompt="False" PrintMode="Pdf" />
        </div>







<pre lang="C#">protected void Page_Load(object sender, EventArgs e)
    {
        Response.Clear();
        Response.Buffer = true;
        if (IsPostBack)
        {
            if (dllselection.SelectedValue == "3")
            {
                ReportDocument myDataReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
                myDataReport.Load(Server.MapPath("OJT.rpt"));
                myDataReport.SetDatabaseLogon("intranet", "cpgintranet@2016", "192.168.2.5", "INTRANET");
                myDataReport.SetParameterValue("T-ID", TextBox1.Text);
                CrystalReportViewer1.ReportSource = myDataReport;
                CrystalReportViewer1.DataBind();

            }
            else if (dllselection.SelectedValue == "4")
            {
                ReportDocument myDataReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
                myDataReport.Load(Server.MapPath("TEFF.rpt"));
                myDataReport.SetDatabaseLogon("intranet", "cpgintranet@2016", "192.168.2.5", "INTRANET");
                myDataReport.SetParameterValue("T-ID", TextBox1.Text);
                CrystalReportViewer1.ReportSource = myDataReport;
                CrystalReportViewer1.DataBind();


            }
        }
    }

 protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Clear();
        Response.Buffer = true;
if (dllselection.SelectedValue == "3")
            {
                ReportDocument myDataReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
                myDataReport.Load(Server.MapPath("OJT.rpt"));
                myDataReport.SetDatabaseLogon("intranet", "abc@2016", "192.168.2.88", "INTRANET");
                myDataReport.SetParameterValue("T-ID", TextBox1.Text);
                CrystalReportViewer1.ReportSource = myDataReport;
                CrystalReportViewer1.DataBind();

            }
            else if (dllselection.SelectedValue == "4")
            {
                ReportDocument myDataReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
                myDataReport.Load(Server.MapPath("TEFF.rpt"));
                myDataReport.SetDatabaseLogon("intranet", "abc@2016", "192.168.2.88", "INTRANET");
                myDataReport.SetParameterValue("T-ID", TextBox1.Text);
                CrystalReportViewer1.ReportSource = myDataReport;
                CrystalReportViewer1.DataBind();


            }
}





我的尝试:





What I have tried:

Having researched the topic online i found some solution,set registry value, specifically HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Report Application Server\InprocServer\PrintJobLimit to &quot;-1&quot; ,but this solution is not working,if i adding crystal report dispose and close function in my code,the crystal report i generated will be empty

推荐答案

您可以在注册编辑中增加Crystal Report中的作业限制。
You can increase the Job Limit in Crystal Report in Register Edit.


这篇关于Crystal报表超出处理作业限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆