我有一台 PC,操作系统已安装在 E: 上,但它没有 C: 驱动器。为此,我安装了运行良好的 .Net 4.0 WPF 应用程序。
但是,当我尝试访问水晶报告时,它会给出以下异常。该用户能够从 Windows 资源管理器中的网络位置访问报告,所以我认为要求 Crystal 将其复制到本地的行为会导致问题?
因此,任何人都可以建议在哪里创建本地副本和/或我如何控制它。
谢谢
打开报告的代码:
oReportDocument.Load(oSystemData.ReportPath + StandardReport.RPTFile, CrystalDecisions.[Shared].OpenReportMethod.OpenReportByTempCopy)
调用堆栈的提取:
CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Invalid report file path.
在 CrystalDecisions.CrystalReports.Engine.EngineExceptionUtils.DoThrowException(字符串消息,EngineExceptionErrorID id)在 CrystalDecisions.CrystalReports.Engine.ExceptionThrower.ThrowEngineException(字符串消息 ID,EngineExceptionErrorID id)在 CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(字符串文件名,OpenReportMethod openMethod , Int16 parentJob) 在 CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport() 在 CrystalDecisions.CrystalReports.Engine.ReportDocument.get_Subreports()