【发布时间】:2016-08-01 11:57:24
【问题描述】:
我是 C# winforms 应用程序开发的新手,目前我正在开发一个具有 Crystal Reports 的 winforms 应用程序,并且在开发期间在调试和没有调试模式的情况下工作正常。 但是当我部署它并在客户端 PC 上运行时,它在我尝试打开任何 Crystal Report 时给我一个错误。
它给出报告加载失败的错误-->.
************** Exception Text **************
CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack.
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 ePos._forms._pos._reports.customerLedgerReport.ShowReport(DataTable dtable)
at ePos._forms._pos._reports.customerLedgerReport.customerLedgerReport_Load(Object sender, EventArgs e)
请帮助我,将非常感谢您。 :)
【问题讨论】:
-
感谢您的友好回复。我已经看起来了,但不适合我..
标签: c# .net winforms deployment crystal-reports