<legend id='qw5MY'><style id='qw5MY'><dir id='qw5MY'><q id='qw5MY'></q></dir></style></legend><tfoot id='qw5MY'></tfoot>
  1. <small id='qw5MY'></small><noframes id='qw5MY'>

  2. <i id='qw5MY'><tr id='qw5MY'><dt id='qw5MY'><q id='qw5MY'><span id='qw5MY'><b id='qw5MY'><form id='qw5MY'><ins id='qw5MY'></ins><ul id='qw5MY'></ul><sub id='qw5MY'></sub></form><legend id='qw5MY'></legend><bdo id='qw5MY'><pre id='qw5MY'><center id='qw5MY'></center></pre></bdo></b><th id='qw5MY'></th></span></q></dt></tr></i><div id='qw5MY'><tfoot id='qw5MY'></tfoot><dl id='qw5MY'><fieldset id='qw5MY'></fieldset></dl></div>
      • <bdo id='qw5MY'></bdo><ul id='qw5MY'></ul>
    1. CrystalReport 加载报告失败

      CrystalReport Load report failed(CrystalReport 加载报告失败)
    2. <small id='8rZQ0'></small><noframes id='8rZQ0'>

    3. <legend id='8rZQ0'><style id='8rZQ0'><dir id='8rZQ0'><q id='8rZQ0'></q></dir></style></legend>

        • <bdo id='8rZQ0'></bdo><ul id='8rZQ0'></ul>
            <tbody id='8rZQ0'></tbody>
            • <tfoot id='8rZQ0'></tfoot>
              <i id='8rZQ0'><tr id='8rZQ0'><dt id='8rZQ0'><q id='8rZQ0'><span id='8rZQ0'><b id='8rZQ0'><form id='8rZQ0'><ins id='8rZQ0'></ins><ul id='8rZQ0'></ul><sub id='8rZQ0'></sub></form><legend id='8rZQ0'></legend><bdo id='8rZQ0'><pre id='8rZQ0'><center id='8rZQ0'></center></pre></bdo></b><th id='8rZQ0'></th></span></q></dt></tr></i><div id='8rZQ0'><tfoot id='8rZQ0'></tfoot><dl id='8rZQ0'><fieldset id='8rZQ0'></fieldset></dl></div>

              1. 本文介绍了CrystalReport 加载报告失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一个使用 Crystal Report 2008 的 Windows 应用程序项目(C# 和 .NET 2.0).但在加载报告时有时会出错(似乎是意外).那个错误是:

                I have a windows application project (C# and .NET 2.0) that used Crystal Report 2008. But I get error sometimes (it seems accidentally) in loading report. That error is:

                CrystalDecisions.Shared.CrystalReportsException: Load report failed.
                System.Runtime.InteropServices.COMException (0x8000020D): Unable to load report.
                   at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
                   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
                   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
                   --- End of inner exception stack trace ---
                   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
                   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
                   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
                at SIA.DataTransfer.Forms.frmReport.GetStateReport(Int32 transferType)
                

                请指导我.我该如何解决这个问题?

                please guide me. How can I solve this problem?

                推荐答案

                如果您的应用程序是独立的可执行文件,则会生成此错误,因为您在完成任何操作后都没有正确关闭报表对象.您可能会看到此错误在您的应用程序中作为 ASP.NET 应用程序运行,并且有很多用户同时访问您的站点.

                If your application is a standalone executable then this error is generated because you are not closing your report object properly when you are done with whatever you do. You might see this error running in your application as an ASP.NET app with a lot of users accessing your site simultaneously.

                您可以通过调整此注册表项来使错误更快出现:

                You can cause the error to appear sooner by tweaking this registry key:

                HKEY_LOCAL_MACHINESOFTWARECRYSTAL DECISIONS10.0REPORT APPLICATION SERVERSERVERPrintJobLimit
                

                通常默认为 75.为了调试,您可以将其设置为较小的值,使错误更快出现.

                It normally is defaulted to 75. For debugging you can set it to a smaller value and cause the error to appear sooner.

                使用完报表对象后,调用 .Close() 方法,该方法将清理使用的非托管资源.

                When you are done using a report object, call the .Close() method which will clean up the un-managed resources used.

                有些人提到将设置更改为 -1.这是一个错误,它只会导致长时间运行的应用程序出现其他问题.该过程最终将耗尽资源并开始以更难以排除故障的方式失败.

                There are those that mention to change the setting to -1. This is a mistake, it will only cause other problems for an application that is long running. The process will eventually run out of resources and start to fail in ways that will be even more difficult to troubleshoot.

                这篇关于CrystalReport 加载报告失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Performance overhead of using attributes in .NET(在 .NET 中使用属性的性能开销)
                Accessing attribute info from DTE(从 DTE 访问属性信息)
                c# Hide a property in datagridview with datasource(c#使用数据源隐藏datagridview中的属性)
                Extract Display name and description Attribute from within a HTML helper(从 HTML 帮助器中提取显示名称和描述属性)
                How can I force the PropertyGrid to show a custom dialog for a specific property?(如何强制 PropertyGrid 显示特定属性的自定义对话框?)
                Associate attribute with code generated property in .net(将属性与 .net 中的代码生成属性相关联)
                <i id='BPngp'><tr id='BPngp'><dt id='BPngp'><q id='BPngp'><span id='BPngp'><b id='BPngp'><form id='BPngp'><ins id='BPngp'></ins><ul id='BPngp'></ul><sub id='BPngp'></sub></form><legend id='BPngp'></legend><bdo id='BPngp'><pre id='BPngp'><center id='BPngp'></center></pre></bdo></b><th id='BPngp'></th></span></q></dt></tr></i><div id='BPngp'><tfoot id='BPngp'></tfoot><dl id='BPngp'><fieldset id='BPngp'></fieldset></dl></div>

              2. <legend id='BPngp'><style id='BPngp'><dir id='BPngp'><q id='BPngp'></q></dir></style></legend>

                  <small id='BPngp'></small><noframes id='BPngp'>

                    <tfoot id='BPngp'></tfoot>
                      <bdo id='BPngp'></bdo><ul id='BPngp'></ul>
                        <tbody id='BPngp'></tbody>