开发者

loadreport fails when called from within C# class library

开发者 https://www.devze.com 2023-04-03 03:59 出处:网络
I have created a class library for use from Classic ASP. The load report fails (see trace) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

I have created a class library for use from Classic ASP. The load report fails (see trace)

at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() 
at开发者_Python百科 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?


Gave write permission for iis user to windows temp folder. this solved the issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消