Crystal Reports在加载时会询问用户名和密码 [英] Crystal Reports asks for Username and Password while loading

查看:108
本文介绍了Crystal Reports在加载时会询问用户名和密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用sql server 2005在vb.net上创建一个水晶报告,它在检索记录时运行良好,但它总是要求在sql server上输入密码和用户名如何让它停止询问用户名和密码?你回答我的问题:)

解决方案

看看这些是否有帮助:

在运行时将数据库登录信息设置为Crystal Report [ ^ ]

< a href =http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-dynamic-login.htm> C#Crystal Reports动态登录参数 [ ^ ]


Dim myConnectionInfo As New ConnectionInfo()

myConnectionInfo.ServerName =。

myConnectionInfo.DatabaseName =doc

myConnectionInfo.UserID =orka2

myConnectionInfo.Pass word =P @ ssw0rd2012

rpt.SetDatabaseLogon(orka2,myConnectionInfo.Password,myConnectionInfo.ServerName,myConnectionInfo.DatabaseName)


请参阅:

forums.asp.net/post/1797759.aspx



www.daniweb.com/software-development/vbnet/threads/155854/crystal-reports-asks-for-username-and-password-while-loading



www.crystalreportsbook.com/Forum/forum_posts.asp?TID=4893

Im creating a crystal report on vb.net using sql server 2005,it's working well when retrieving the record, but it always asking to enter password and username on sql server how to make it stop asking for username and password? thx u for answering me :)

解决方案

See if these help:
Set Database logon info to a Crystal Report at runtime[^]
C# Crystal Reports Dynamic Logon parameters [^]


Dim myConnectionInfo As New ConnectionInfo()
myConnectionInfo.ServerName = "."
myConnectionInfo.DatabaseName = "doc"
myConnectionInfo.UserID = "orka2"
myConnectionInfo.Password = "P@ssw0rd2012"
rpt.SetDatabaseLogon("orka2", myConnectionInfo.Password, myConnectionInfo.ServerName, myConnectionInfo.DatabaseName)


Refer to this:
forums.asp.net/post/1797759.aspx

www.daniweb.com/software-development/vbnet/threads/155854/crystal-reports-asks-for-username-and-password-while-loading

www.crystalreportsbook.com/Forum/forum_posts.asp?TID=4893


这篇关于Crystal Reports在加载时会询问用户名和密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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