在CrystalReports中登录数据库 [英] Login to Database in CrystalReports
本文介绍了在CrystalReports中登录数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用CrystalReports创建了报告,添加了四个Access数据库连接。
我的要求是,我安装它之后永远不应该提示UserID和密码在客户端的计算机上。
我也在报告中使用了参数。
我知道关于如何传递登录凭证设计时间但不确定如果在客户端PC安装后它会再次提示。
我也试过
I have created Reports using CrystalReports adding four Access Database Connections.
My requirement is, It should never prompt for UserID and Password After I install It on Client's Computer.
I have also used parameters in Reports.
I know about how to pass login credentails design time but not sure If It will prompt again after Installation at Client PC.
I also Tried
CrystalDecisions.Shared.ConnectionInfo
并且成功了,但是当尝试使用来自多个数据库的报告时失败了。
and went succeed, but failed when tried with report from multiple databases.
推荐答案
好吧,你还没有真正问过一个问题。你提供的代码......那是什么?你在哪里用它?这是一个网络应用程序?窗户形成?所有这些信息都可以帮助我们。
我能提供的唯一建议是研究CrystalReportDocument的.SetDataSource。
并此处 [ ^ ]是一篇MSDN文章关于使用DataSourceConnections类进行数据库登录。
希望它有所帮助。
Well, you haven't really asked a question. And the code you supplied...What is that? Where are you using it? Is this a web app? A windows forms? All of this information will help us help you.
The only advice I can supply is to research the CrystalReportDocument's .SetDataSource.
And here[^] is an MSDN article about Using the DataSourceConnections Class for Database Logon.
Hope it helps.
这篇关于在CrystalReports中登录数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文