问题描述
我试图将Crystal Report(Crystal Report for VS 2005)CrystalReportViewer控件放到sharepoint webpart上。当我通过以下方式绑定数据时:
ReportDocument.SetDataSource(DataSet dataSet)
我收到此消息:
CrystalDecisions.CrystalReports.Engine.DataSourceException:未知的查询引擎错误错误文件C:\ WINDOWS \ TEMP \ Customer {E6CF813B-0A4B-4A60-8113-05E6E850454C} .rpt:未知的查询引擎错误---> System.Runtime.InteropServices.COMException(0x800002C2):文件C中的未知查询引擎错误错误:\ WINDOWS \ TEMP \ Customer {E6CF813B-0A4B-4A60-8113-05E6508454C} .rpt:CrystalDecisions中的未知查询引擎错误。 CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val,Type type)中的ReportAppServer.Controllers.DatabaseControllerClass.ReplaceConnection(Object oldConnection,Object newConnection,Object parameterFields,Object crDBOptionUseDefault)位于CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val) ,Type type)---内部异常堆栈跟踪的结束---在CrystalDecisions.CrystalReports上的CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val,Type type)中的CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(异常e)处。位于SPPortal.Reports的SPPortal.Reports.PrintJunketStatementReport.ConfigureCrystalReports()的Engine.ReportDocument.SetDataSource(DataSet dataSet)。 System.Web.UI.ControlCollection.Add上的System.Web.UI.Control.AddedControl(控件控件,Int32索引)的System.Web.UI.Control.InitRecursive(Control namingContainer)中的PrintJunketStatementReport.OnInit(EventArgs e)在SPPortal.Controls.PPWebPartSimple.CreateChildControls()
当我在普通的asp.net页面(而不是sharepoint)上尝试相同的东西时一切正常。
我不知道这是不是来自于Crystal Report或Sharepoint,但我认为它没有理由不起作用。
Tomas
Hi,
I tried to place crystal report's (Crystal Report for VS 2005) CrystalReportViewer control to the sharepoint webpart. When I bind data by:
ReportDocument.SetDataSource( DataSet dataSet )
I get this message:
CrystalDecisions.CrystalReports.Engine.DataSourceException: Unknown Query Engine Error Error in File C:\WINDOWS\TEMP\Customer {E6CF813B-0A4B-4A60-8113-05E6E850454C}.rpt: Unknown Query Engine Error ---> System.Runtime.InteropServices.COMException (0x800002C2): Unknown Query Engine Error Error in File C:\WINDOWS\TEMP\Customer {E6CF813B-0A4B-4A60-8113-05E6E850454C}.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 SPPortal.Reports.PrintJunketStatementReport.ConfigureCrystalReports() at SPPortal.Reports.PrintJunketStatementReport.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at SPPortal.Controls.PPWebPartSimple.CreateChildControls()
When I try same stuff on normal asp.net page (not sharepoint) everything works well.
I don't know if this is problem from Crystal Report or Sharepoint, but I think there is no reason it shouldn't work.
Thanks for help...
Tomas
推荐答案
重建rpt文件或更改文件名并检查代码并检查参数(如果使用它)。
rebuild rpt file or change file name and check your code and check parameters if you using it.
这篇关于Crystal Report的CrystalReportViewer无法在SharePoint网站上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!