客户端计算机中的水晶报表问题(Windows应用程序) [英] crystal report problem in client machine(windows application)

查看:81
本文介绍了客户端计算机中的水晶报表问题(Windows应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我在C#.net 2008中用ms access backend创建了一个Windows应用程序.我在水晶报表中创建了一个销售账单报告,它在我的本地计算机上运行良好.但是它不在客户端计算机上运行.它显示登录"失败".有人可以给我在客户端计算机上运行水晶报表的解决方案吗?

Hi friends,

I have created a windows application in C#.net 2008 with ms access backend.i have created a sales bill report in crystal report and it was working in my local machine finely.but it is not running in client machine.it showing a "login failed".can anyone give me the solution for crystal reports to be run in client machine?

推荐答案

您好,我自己解决了问题. :))

我的数据库服务器在远程系统中.这就是为什么我遇到这个问题.

如果数据库服务器在您的系统中,则给定的代码将起作用

Hi, I solved my problem myself. :))

My database server is in remote system. That is why i get that problem.

Given code will work if the database server is in your system

 ReportDocument custReport1= new ReportDocument();
CrystalReportViewer1.ReportSource = custReport1;




对于远程数据库服务器,我们必须添加
-----------------------------------------




for remote database server we have to add
-----------------------------------------

custReport1.SetDatabaseLogon ("username", "password", "ServerName","DataBase name");



在这两行之间.

希望对您有帮助.



in between those 2 lines.

hope this help u..


这篇关于客户端计算机中的水晶报表问题(Windows应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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