SetDataSource的问题 [英] Problems with SetDataSource

查看:108
本文介绍了SetDataSource的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我用水晶创建了一些报告。

i have created some reports with crystal.

表格的Form_Load:

Form_Load of my Form :

[code]

//我的类加载数据集

// my Class loads a DataSet

AntragReparaturs antrag1 = < FONT color =#0000ff size = 2> new AntragReparaturs();

AntragReparaturs antrag1 = new AntragReparaturs();

DataSet set1 = antrag1.Report_RepAnnahme_Kunde_GetData( .antragsID4Edit);

DataSet set1 = antrag1.Report_RepAnnahme_Kunde_GetData(this.antragsID4Edit);

//我的报告实例

// Instance of my report

Report_RepAnnahme_Kunde rep1 = new Report_RepAnnahme_Kunde( );

Report_RepAnnahme_Kunde rep1 = new Report_RepAnnahme_Kunde();

//数据集上的SetDataSource

// SetDataSource on DataSet


crystalReportViewer1.ReportSource = rep1;

crystalReportViewer1.ReportSource = rep1;

[/ code]

这在我的开发机器上工作正常,

this works fine on my development-machine,

但在其他计算机上SetDataSource失败

but on other computers SetDataSource failed

错误信息是

[code]

< ! - StartFragment - >

System.MissingMethodException:找不到方法:'Void CrystalDecisions.ReportAppServer.Controllers.ISCRDatabaseController.ReplaceConnection(System.Object,System.Object,System.Object, System.Object的)"。
at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val,Type type)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val,Type type)
at CrystalDecisions.CrystalReports .Engine.ReportDocument.SetDataSource(DataTable dataTable)
at Main.Controls.Reports.Report_RepAnnahme_Kunde_Form.Report_RepAnnahme_Kunde_Form_Load(Object sender,EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)

System.MissingMethodException: Method not found: 'Void CrystalDecisions.ReportAppServer.Controllers.ISCRDatabaseController.ReplaceConnection(System.Object, System.Object, System.Object, System.Object)'. at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type) at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type) at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataTable dataTable) at Main.Controls.Reports.Report_RepAnnahme_Kunde_Form.Report_RepAnnahme_Kunde_Form_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m)


[/ code]

[/code]

 

我已经实现了我的安装程序例程,如下所述:

I have implemented my Setup-routine like described in :

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=8949&SiteID=1

 

任何人都知道,安装人员或CR-ASSEMBLIES错误

anybody knows, whats wrong with the installer or the CR-ASSEMBLIES

推荐答案

大家好,

我对方法ApplyLogOnInfo有同样的问题,似乎无法解决它。

I had the same problem with the method ApplyLogOnInfo and seems to be impossible to solve it.

描述:在执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

异常详细信息: System.MissingMethodException:找不到方法:'Void CrystalDecisions.ReportAppServer.Controllers.ISCRDatabaseController.ReplaceConnection(System.Object,System.Object,System.Object,System。对象)'。

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.MissingMethodException: Method not found: 'Void CrystalDecisions.ReportAppServer.Controllers.ISCRDatabaseController.ReplaceConnection(System.Object, System.Object, System.Object, System.Object)'.

帮助!!!!!!!!!!

HELP!!!!!!!!!!

Lorenzo


这篇关于SetDataSource的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆