您的位置:首页 > 其它

水晶报表连续打印

2008-05-30 11:04 381 查看
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,然后重启动计算机后,故障排除

根本的解決方法是做好释放物件的动作。例如可在Page_Unload時,執行以下程式:

Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload

If TypeOf CrystalReportViewer1.ReportSource Is ReportDocument Then

Dim report As ReportDocument

report = CrystalReportViewer1.ReportSource

If report IsNot Nothing Then

report.Close()

report.Dispose()

End If

  End If

End Sub

希望对遇到同样问题的朋友一个解决方法。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: