C#LoadReport错误

时间:2014-11-05 10:56:49

标签: c# crystal-reports

我使用Microsoft Visual Studio 2012在C#中开发了一个应用程序。它从与应用程序一起保存的报告文件夹中加载报告。 我在文件夹中保留了两份报告。应用程序在DEV计算机上加载两个报告,但在客户端计算机上,它只打开了一个报告,并在加载第二个报告时出现错误,因为加载报告失败。

我被困住了。我已检查路径,但无法识别错误。

  

**************例外文字**************   CrystalDecisions.Shared.CrystalReportsException:加载报告失败。   ---> System.Runtime.InteropServices.COMException:不支持的操作。由JRC引擎处理的文档无法打开   C ++堆栈。在   CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(对象&安培;   DocumentPath,Int32 Options)at   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(对象&安培;   DocumentPath,Int32 Options)at   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()   ---内部异常堆栈跟踪结束---在CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()   在CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String   filename,OpenReportMethod openMethod,Int16 parentJob)at   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(字符串   filename)在Sbi_Bank_Cheque.Form1.button4_Click(对象发送者,   EventArgs e)在System.Windows.Forms.Control.OnClick(EventArgs e)
  在System.Windows.Forms.Button.OnClick(EventArgs e)at   System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)at at   System.Windows.Forms.Control.WmMouseUp(Message& m,MouseButtons   按钮,Int32点击)at   System.Windows.Forms.Control.WndProc(Message& m)at   System.Windows.Forms.ButtonBase.WndProc(Message& m)at   System.Windows.Forms.Button.WndProc(Message& m)at   System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)   在System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&   m)在System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32)   msg,IntPtr wparam,IntPtr lparam)

0 个答案:

没有答案