如何在具有Crystal报表输出的客户端计算机中运行Visual Studio 2008 C#应用程序 [英] How to run Visual Studio 2008 C# Application in Client Machine with Crystal Report Output

查看:50
本文介绍了如何在具有Crystal报表输出的客户端计算机中运行Visual Studio 2008 C#应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,



我使用visual studio 2008开发了C#应用程序,它可以选择使用具有MySQL数据库连接的水晶报告功能生成少量报告。我已尝试过在客户端计算机上运行应用程序的所有方法。但是得到以下两种错误:



(请注意,应用程序运行良好,生成CrystalReport时会出现问题)



1.将所有dll文件添加到应用程序路径后:

crystaldecisions.crystalreports.engine.reportdocument的类型初始值设定项引发异常



2.无需将dll文件添加到应用程序路径:

无法加载文件或程序集CrystalDecisions.Windows.Forms,Version = 10.5.3700,Culture-neutral,PublicKeyToken = 692fbea5521e1304'或其中一个依赖项。系统找不到指定的文件。



我的应用程序.net版本是3.5。



我在客户端计算机中安装了三个安装文件,但仍然出现相同的错误。

Crystal Reports .NET 2.0。可再分发版

CRforVS_redist_install_32bit_13_0_2

CRforVS_redist_install_32bit_13_0_5



请帮我摆脱这个错误。



谢谢!

Dear Friends,

I have developed C# application using visual studio 2008, it has the option to generate few reports using crystal report function with MySQL database connectivity. I have tried every methods to run the application in client machine. But getting following two type of errors:

(Please be noted that, application is working very well, the problem is occur while generate the CrystalReport)

1. Once add all the dll files to the application path:
the type initializer for 'crystaldecisions.crystalreports.engine.reportdocument' threw an exception

2. Without add the dll files to the application path:
"Could not load file or assembly "CrystalDecisions.Windows.Forms, Version=10.5.3700, Culture-neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified."

My application .net version is 3.5.

I installed following three setup files in client machine, but still same error.
Crystal Reports .NET 2.0.Redistributable
CRforVS_redist_install_32bit_13_0_2
CRforVS_redist_install_32bit_13_0_5

Please help me to get rid of this error.

Thanks!

推荐答案

您是否在客户端计算机上安装了Crystal Reports Runtime?可能没有。只是复制bin文件夹中的.DLL将无法正常运行。
Do you install the Crystal Reports Runtime on the client machine? Probably not. Just copying the .DLL's in your bin folder will not work as your missing the CR runtime.


这篇关于如何在具有Crystal报表输出的客户端计算机中运行Visual Studio 2008 C#应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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