Crystal report 出现maximum report processing jobs limit configured by your system administrator has been reached错误的解决办法.

WEB下的水晶报表在正常运行一段时间后,出现以下错误:

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

后来发现,水晶报表会在注册表中注册,并限制了打印数量为75,更改以下注册表内容:

Software/Business Objects/Suite 11.0/Report Application Server/ImProcServer/PrintJobLimit

将PrintJobLimit由75改为0,然后重启动计算机后,故障排除.

源码:public partial class Form1 : Form { public Form1() { InitializeComponent(); this.cboPageMax.Text = GetRegistData(); this.lblMessage.Text = "你当前电脑打印最高页数为" + GetRegistData()+"页"; } private void button1_Click(object sender, EventArgs e) { this.lblMessage.Text = ""; string txtPageNumber = this.cboPageMax.Text.ToString().Trim(); foreach (char c in txtPageNumber) { if (!Char.IsNumber(c)) { lblMessage.Text = "这里只能输入数字整数"; return; } } try { Boolean boolSucsess = WTRegedit(txtPageNumber); //将打印最大页数保存到注册表里 int pageNumber = Convert.ToInt32(GetRegistData()); if (boolSucsess) { MessageBox.Show("成功将最高打印页数设置到" + pageNumber + "页"); } else { MessageBox.Show("打印最高张数还是" + pageNumber + "页,没有设置成功,权限不够,不能设置,请找网管或管理员在管理员administrator权限下设置"); } this.lblMessage.Text = "你目前电脑打印最高页数为" + GetRegistData() + "页"; } catch (Exception ex) { this.lblMessage.Text = "你电脑打印最高页数还是" + GetRegistData() + "页,没有设置成功"; MessageBox.Show("权限不够,不能设置,请找网管或管理员在高级权限下设置 " + ex); } } // Windows Registry Editor Version 5.00 //[HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\10.2\Report Application Server\InProcServer] //"PrintJobLimit"="50000" //[HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\10.2\Report Application Server\Server] //"PrintJobLimit"="50000" private string GetRegistData() //注册表读取 {//Registry string registData; RegistryKey hkml = Registry.LocalMachine; //RegistryKey software = hkml.OpenSubKey("HKEY_LOCAL_MACHINE", true); RegistryKey node1 = hkml.OpenSubKey("SOFTWARE", true); RegistryKey node2 = node1.OpenSubKey("Crystal Decisions", true); RegistryKey node3 = node2.OpenSubKey("10.2", true); RegistryKey node4 = node3.OpenSubKey("Report Application Server", true); RegistryKey node5 = node4.OpenSubKey("InProcServer", true); RegistryKey node41 = node4.OpenSubKey("Server", true); registData = node41.GetValue("PrintJobLimit").ToString().Trim(); return registData; } private Boolean WTRegedit(string tovalue) //写到注册表 { try { RegistryKey hkml = Registry.LocalMachine; RegistryKey node1 = hkml.OpenSubKey("SOFTWARE", true); RegistryKey node2 = node1.OpenSubKey("Crystal Decisions", true); RegistryKey node3 = node2.OpenSubKey("10.2", true); RegistryKey node4 = node3.OpenSubKey("Report Application Server", true); RegistryKey node5 = node4.OpenSubKey("InProcServer", true); RegistryKey node41 = node4.OpenSubKey("Server", true); node5.SetValue("PrintJobLimit", (Convert.ToInt32(tovalue.Trim())+750).ToString().Trim()); //设置[HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\10.2\Report Application Server\InProcServer] //设置"PrintJobLimit"="50000" node41.SetValue("PrintJobLimit", tovalue.Trim()); //[HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\10.2\Report Application Server\Server] //"PrintJobLimit"="50000" return true; } catch (Exception) { return false; } }
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值