错误:'crystaldecisions.crystalreports.engine.reportdocument'的类型初始值设定项在Windows应用程序中加载报表时引发异常 [英] Error: the type initializer for 'crystaldecisions.crystalreports.engine.reportdocument' threw an exception while loading report in windows application

查看:1075
本文介绍了错误:'crystaldecisions.crystalreports.engine.reportdocument'的类型初始值设定项在Windows应用程序中加载报表时引发异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为C#-windows应用程序完成了所有程序集的安装项目。但是,当我在客户端PC中设置该项目时,当我尝试显示报告时,它会抛出异常。



异常是:'的类型初始值设定项' crystaldecisions.crystalreports.engine.reportdocument'抛出异常

我正在使用VS-2010 64位。

和Crystal Report 2010.



现在请告诉我如何才能显示报告?我在我的安装项目中添加了程序集,如下所示:

1. CrystalDecisions.CrystalReports.Engine.dll

2. CrystalDecisions.Data.AdoDotNetInterop.dll

3. CrystalDecisions.ReportSource.dll

4. CrystalDecisions.Shared.dll

5. CrystalDecisions.Windows.Forms.dll



谢谢。

I have made a setup project with all assemblies perfectly for C#-windows application. But, when I have setup that project in client pc it's throw exception when I am trying to show report.

The Exception is: the type initializer for 'crystaldecisions.crystalreports.engine.reportdocument' threw an exception
I am using VS-2010 64bit.
And Crystal Report 2010.

Now please tell me how can I enable to show report ? I have add assemblies in my setup projects as follows:
1. CrystalDecisions.CrystalReports.Engine.dll
2. CrystalDecisions.Data.AdoDotNetInterop.dll
3. CrystalDecisions.ReportSource.dll
4. CrystalDecisions.Shared.dll
5. CrystalDecisions.Windows.Forms.dll

Thank you.

推荐答案

安装CRforVS_redist_install_64bit_13_0_5
install CRforVS_redist_install_64bit_13_0_5


这篇关于错误:'crystaldecisions.crystalreports.engine.reportdocument'的类型初始值设定项在Windows应用程序中加载报表时引发异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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