【问题标题】:Crystal Report Viewer button is not working in Google chrome and Firefox but fine in IECrystal Report Viewer 按钮在 Google chrome 和 Firefox 中不起作用,但在 IE 中正常
【发布时间】:2012-09-14 15:18:11
【问题描述】:

我的是带有 c# web 应用程序的 asp.net。 Crystal Report 打印按钮在 Google chrome 和 Firefox 中不起作用,但在 IE 中正常。 当我单击 Crystal Report Viewer 的打印按钮时,它只会刷新网页,并且不会在 Google chrome 中显示任何对话框。在 Firefox 中,它打开打印对话框,现在我单击取消按钮。然后我单击注销,它只是停留在同一页面中,而在单击注销后单击任何其他链接,它会导航到会话过期页面。 我在 IE 中没有这个问题。 CrystalReportViewer 没有放在更新面板中。

【问题讨论】:

  • 你部署了这个网站吗?您使用的是什么运行时版本?在 Chrome 上尝试开发者工具栏 (F12) .. 有错误吗?
  • Crystal Report Viewer 不支持 Google Chrome。 (有关更多详细信息,请参阅cw.sdn.sap.com/cw/ideas/3136。)如果有人知道解决此问题的方法,那将非常有帮助。
  • @EmanueleGreco:感谢您的回复。使用 II7 部署我的应用程序。在 chrome 上使用开发者工具栏 (F12) 时没有错误。
  • @Venil 你有没有想过这个问题?
  • 对不起@davids。我错误地告诉我我已经解决了。它仍在发生。

标签: asp.net firefox c#-4.0 google-chrome crystal-reports-2010


【解决方案1】:

确保你在 web.config 的程序集中有这个

<add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0,    Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

我添加了这个程序集,打印按钮开始在所有浏览器中为我工作。但是它在 Chrome 中不是真正的打印,它将报告导出为 PDF,然后您可以从文件中打印。

【讨论】:

    【解决方案2】:

    附加 CrystalDecisions.ReportAppServer.ClientDoc 程序集尝试设置选项:

       CrystalReportViewer1.PDFOneClickPrinting = false;
    

    【讨论】:

      【解决方案3】:

      请尝试使用报表对象而不是查看器,您可以在其他中使用其 PrintToPrinter 属性进行打印,并使用查看器控件进行查看(可能为此添加另一个打印按钮)。

      【讨论】:

        【解决方案4】:

        确保您在 aspnet_client 文件中添加了 th,并且 PrintContol.cab 也包含在您的应用程序中。我希望它可以在 Firefox 上工作,但 chrome 不能工作, enter image description here

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2015-07-11
          • 1970-01-01
          • 2015-02-03
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多