Crystal报表 - 加载报表失败 [英] Crystal report - Load report failed
问题描述
你可以解决错误: -
CrystalDecisions.Shared.CrystalReportsException:加载报告失败。 ---> System.Runtime.InteropServices.COMException:文件名无效。在CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath,Int32 Options)的CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath,Int32 Options)中,在CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()---内部结束异常堆栈跟踪---在CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename,OpenReportMethod openMethod,Int16 parentJob)上的CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()处于CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)在Crystal_Report_CommonReport.Show_Data()
从过去1周开始,我只是在网上搜索,但到目前为止还没有得到任何解决方案。如果您有任何解决方案,请发送给我.........
加载水晶报告时出现此错误。我写过: -
ReportDocument boReportDocument = new ReportDocument();
boReportDocument.Load(Server.MapPath( RptCustomerDeposits.rpt));
加载报告。它在我的本地机器上工作。但是当我把它放在remotr网站上时,上面的错误就会出现。
请任何解决方案然后发送给我............
检查此提示/技巧
Crystal Reports:修复加载报告失败错误。 [ ^ ]
这篇文章 [ ^ ]可能对您有所帮助。
< blockquote>调试它。
检查你得到的值
Server.MapPath( RptCustomerDeposits.rpt)
然后检查那个文件实际上就在那里。我怀疑它在您的本地计算机上工作,因为该文件存在,但可能是您希望服务器上的客户端文件,这是行不通的。你需要知道的第一件事是:它在哪里?并且文件实际存在吗?如果没有,它在哪里?
Can You Please Solve the error:-
CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: Invalid file name. at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() --- End of inner exception stack 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 Crystal_Report_CommonReport.Show_Data()
From last 1 week I am just searching from net and other but till now not get any solution. If any solution with you then please kindly send me.........
This error coming at the time of load the crystal report. I have written:-
ReportDocument boReportDocument = new ReportDocument();
boReportDocument.Load(Server.MapPath("RptCustomerDeposits.rpt"));
To load the report . and it is working in my local machine. But when I put it in remotr site the above error is coming.
Please any solution then send me............
Check this Tip/Trick
Crystal Reports: Fix for "Load report failed" error.[^]
This post[^] might help you.
Debug it.
Check what value you are getting forServer.MapPath("RptCustomerDeposits.rpt")and then check that teh file is actually there. I suspect it works o0n your local machine because the file exists, but it may be that you are expecting a client file on the server, which is not going to work. The first thing you need to know is: "where is it looking?" and "Is the file actually there? If not, where is it?"
这篇关于Crystal报表 - 加载报表失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!