【问题标题】:Crystal Reports Export Access DeniedCrystal Reports 导出访问被拒绝
【发布时间】:2010-01-12 05:00:02
【问题描述】:

我正在维护一些使用 CR 创建报告并将其写入磁盘的代码。

var report = new ReportDocument();
....
report.Export();

在我们的实时服务器上,这会导致以下错误:

Error in File E:\TEMP\temp_cb1a18c2-b4e6-46b8-901b-a7a028a43b79.rpt: Access to report file denied. Another program may be using it. 

应用程序作为网络服务运行并且完全控制 e:\temp 目录,因此收到拒绝访问消息似乎很奇怪。

有人遇到过这种情况吗?

【问题讨论】:

    标签: crystal-reports


    【解决方案1】:

    我可能需要查看更多您的代码。您是否使用 ReportDocument.Load 从磁盘加载报告,并指定了 OpenReportByTempCopy?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-10
      • 2012-07-10
      • 2021-03-06
      • 2011-05-15
      • 2010-09-06
      • 2014-03-22
      相关资源
      最近更新 更多