开发者

loadreport fails when called from within C# class library

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜