从 C# 类库中调用时 loadreport 失败
我创建了一个类库供 Classic ASP 使用。加载报告失败(请参阅跟踪),
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 test.crystalLib.generate_pdf() in D:\wwwroot\test\Crystal\test\test\crystalLib.cs:line 27
但从 .cs 文件或 .ashx 文件调用时,相同的代码可以工作。
我应该在类库中更改任何属性吗?
I have created a class library for use from Classic ASP. The load report fails (see 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 test.crystalLib.generate_pdf() in D:\wwwroot\test\Crystal\test\test\crystalLib.cs:line 27
But the same code works when called from .cs file or an .ashx file.
is there any property that i should change in the class library?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
授予 iis 用户对 Windows 临时文件夹的写入权限。这解决了问题。
Gave write permission for iis user to windows temp folder. this solved the issue.