Crystal Report无法使用C#Windows应用程序加载(在本地网络上) [英] Crystal report failed to load with C# windows application (on local network)

查看:63
本文介绍了Crystal Report无法使用C#Windows应用程序加载(在本地网络上)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我使用SQL数据库构建了C#应用程序,并使用Crystal Report导出了数据,对其进行了测试,然后根据需要正常运行.
然后,我使此应用程序仅在两台主机之间的本地网络上工作,因此,我让其中一台可以访问另一台的数据库(我正在使用SQL数据库).我建立了一些网络协议来管理主机之间的连接,但是之后,我测试了在一台主机上正常工作的水晶报表,但是它不起作用!
逐步调试项目后,我发现该报告引发异常:

CrystalDecisions.shared.CrystalReportsException


并且我确保报表数据库的数据库连接是最新的,并且在调试给定数据到报表时是正确的,但是报表本身无法加载.
我用谷歌搜索了此异常,但发现该异常是Web应用程序的常见异常,而不是Windows应用程序的异常! 任何人都可以提出确切的问题以及如何解决的建议吗?
在此先感谢..

Hi everybody,
I built C# application with SQL database and using crystal report I export data, I test it and it works properly as I want.
Then I make this application work on local network between just two hosts, so I let one of them get access to the other’s database (I’m using SQL database). And I built some network protocols to manage the connection between the hosts, but after that I test the crystal report that was working properly on one host, but it doesn’t work !!
After debugging the project step by step I found that the report throws an exception:

CrystalDecisions.shared.CrystalReportsException


And I make sure that the database connection of the report database is up to date, and while debugging the given data to the report was correct, but the report itself failed to load.
I google this exception but I found that this exception is usual exception for the web application not for windows application !!
Can anybody suggest what is exactly the problem, and how to solve it?
Thanks in advance..

推荐答案

检查DLL是否已正确安装和注册.

检查是否已安装打印机,并将其设置为默认打印机.
Check whether the DLL''s are properly installed and registered.

Check whether the Printer is installed and set that as a Default Printer too.


这篇关于Crystal Report无法使用C#Windows应用程序加载(在本地网络上)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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