我有一个Windows应用程序,将《2008年晶报告》用作报告工具。 在很长一段时间里,它的工作被罚款,但昨天,当我试图装上任何报告时,我发现这一错误:
CrystalDecisions.CrystalReports.Engine.DataSourceException: Unknown Query Engine Error
Error in File C:UsersMagdyAppDataLocalTemp
pt_Stock_Cost {DC276D4F-79F4-43B9-8168-24E6B7BF490A}.rpt:
Unknown Query Engine Error ---> System.Runtime.InteropServices.COMException: Unknown Query Engine Error
Error in File C:UsersMagdyAppDataLocalTemp
pt_Stock_Cost {DC276D4F-79F4-43B9-8168-24E6B7BF490A}.rpt:
Unknown Query Engine Error
at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.ReplaceConnection(Object oldConnection, Object newConnection, Object parameterFields, Object crDBOptionUseDefault)
at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataSet dataSet)
at Diamonds.UIL.Forms.frm_ReportViewer.Load_Report(String File_FullPath, DataSet DS) in E:DevelopmentBitcoDiamondProjectDiamond 2.0.1DiamondsUILReportsFormsViewerfrm_ReportViewer.cs:line 256
这里使用的代码I用于报告的数据来源:
DataSet ds = new DataSet();
reportDocument_.Load(File_FullPath);
reportDocument_.SetDataSource(ds);
在有些争.之后,我发现了一些结果,即我应该有网络服务,在窗户中使用轮椅。 虽然我认为这是为了网络应用,而不是窗口。 我在尝试时双倍,而上述两倍例外,但都没有帮助。
I m using Visual Studio 2010, C# 4.0, Windows Application
Any ideas what could be wrong?