使用Visual Studio 2010错误消除水晶报告 [英] Sap Crystal Report With Visual Studio 2010 Errors

查看:95
本文介绍了使用Visual Studio 2010错误消除水晶报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨每一个,

我已经在一台安装了Sap水晶报告的机器上开发了我的水晶报告我完成了所有报告的创建我将它们移动到另一台机器(没有sap水晶报告已安装),所以我从第一台机器获得所有Dll并将它们添加到我的项目中作为参考并重建我的项目

i尝试测试项目它抛出了以下异常

hi Every one ,
I have Developed my crystal reports on a machine that have Sap crystal Report installed a fter i finished the creation on all my reports i moved them to another machine (that has not sap Crystal report installed) , so i get all Dll From the first machine and Added them to my project as a refrences and rebuild my project
i try to test the project it's throw the folowing exception

The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.



i用Google搜索此错误我发现一些解决方案说你必须下载Microsoft Report Viewer 2010,我下载并安装它并再次测试同样的错误来了



所以现在的问题我怎么解决这个错误?

以及为什么报告在没有安装sap水晶报告的机器上看错了?

是否需要安装sap报告或者它是s特殊组件,以防止此错误再次出现,为什么..?



i将受到高度赞赏,感谢先进的


i googled for this error for while and i found some solutions says you must download Microsoft Report Viewer 2010 , i downloaded and installed it and test again the same Error come

so the question now how can i solve this error ?
and why the report viewed with no errors on the machine that have the sap crystal report installed ?
is there is need to instal sap report or it's specific component to prevent this error to be appear once again and why ..?

i will b highly appreciated , thanks for advanced

推荐答案

修复链接



'CrystalDecisions.CrystalReports.Engine.ReportDocument'的类型初始化程序引发异常 [ ^ ]

'crystaldecisions.crystalreports.engine.reportdocument'的类型初始化程序引发异常 - 已解决 [ ^ ]
Fix links

The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception[^]
The type initializer for 'crystaldecisions.crystalreports.engine.reportdocument' threw an exception - Resolved[^]


你不能只包括dll的水晶报告并让他们工作。需要在计算机上安装更多dll和注册表设置才能使Crystal报告生效。您将不得不创建一个安装项目,并为您要定位的特定水晶版本包含Crystal Report Merge模块。



使用水晶报表合并模块创建安装项目。这是一篇较旧的文章,但基本步骤是相同的​​,您只需要使用正确的 Crystal Reports合并模块对于您正在使用的版本。对于许可证密钥步骤,您将使用另一台计算机上安装的水晶报告的许可证密钥。



某些旧版本的水晶报告只有32位,没有64位版本。因此,您可能需要专门设置应用程序以编译为.86应用程序的x86。否则,如果您尝试在64位操作系统中运行水晶报告,则会遇到错误。还有水晶报告XI等旧版本,你需要找到服务包5的合并模块才能在Vista / Windows 7中运行水晶报告。



我通常会创建安装程序在单独的安装项目中,然后是我们的应用程序的主安装项目,原因有几个。水晶报告至少为我们使用的版本增加了大约80Mb的安装程序大小。因为它只需要安装一次我们不希望我们的客户端必须下载一个大文件,而其他一切都像15Mb。这意味着他们想要更新时下载速度更快。与我们的应用程序相比,Crystal报告还需要很长时间才能安装,我们不希望支持每次都要花费额外的时间来制作水晶。这对支持更好,因为并非所有客户都拥有IT并且技术娴熟,我们必须通过GoToMeeting或其他类似服务在多台计算机上安装更新。
You can not just include the dll's for crystal reports and get them to work. There are a lot more dll's and registry settings that need to be installed on the computer to get crystal reports to work. You are going to have to create a setup project and include the Crystal Report Merge Modules for the specific version of crystal you are targeting.

Creating a setup project with crystal reports merge modules. This is an older article but the basic steps are the same, you just need to use the correct Crystal Reports Merge Modules for the version you are using. For license key step you will use the license key for crystal reports installed on the other machine.

Certain older versions of crystal reports are only 32-bit, with no 64-bit version available. So you may need to specifically set your application to compile to x86 for your .net application. Else you will run into errors if you try to run crystal reports in a 64-bit operating system. Also older versions like crystal reports XI you will need to find the merge modules for service pack 5 to get crystal reports to run in Vista/Windows 7.

I usually create the installer in a separate setup project then the main setup project for our application for several reasons. The crystal reports adds about 80Mb to size of the installer at least for the version we use. Since it only has to be installed once we don't want our clients to have to download a large file when everything else is like 15Mb. Which means a faster download when they want to update. Crystal reports also takes a long time to install compared to our application and we don't want support to have to spend the extra time wanting for crystal to do its thing every time. This is better for support since not all our clients have IT and are tech savy and we have to install updates on multiple computers for them over GoToMeeting or other services like that.


您必须包括合并模块而不是包含DLL。
You have to include merge module instead of include DLL's.


这篇关于使用Visual Studio 2010错误消除水晶报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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