如何设置report services 登入时不用输入 用户名和 密码

usc001 2013-01-22 02:42:52


Reporting Services 用户登入网页查看报表每次都需要输入 账号 密码,很麻烦,如何配置 可以记住账号密码!
...全文
2340 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
紫魂一号 2013-07-19
  • 打赏
  • 举报
回复
win7可以 控制面板 - 凭据管理器 可以设置记住用户名和密码
云路 2013-06-28
  • 打赏
  • 举报
回复
近段时间正在使用report service 2008,可以联系我一起讨论。
云路 2013-06-28
  • 打赏
  • 举报
回复
如果用代码访问的话,建议默认一个帐号密码,匿名访问有安全风险,谁都可以上传报表了。 匿名访问请参考:http://www.cnblogs.com/dege301/archive/2010/04/09/1708103.html
Leon_He2014 2013-06-07
  • 打赏
  • 举报
回复
可以考虑将Reporting Service 配置成匿名访问 参考: http://tedeum.iteye.com/blog/1208232
紫魂一号 2013-01-25
  • 打赏
  • 举报
回复


ReportServerConnection Credentials =
                        new ReportServerConnection(strReportViewerUser, strReportViewerPassword, strReportViewerDomain,
                            strUrlPar, nReportViewerTimeOut);

                    RptV.ServerReport.ReportServerCredentials = Credentials;
//ReportServerConnection 这个就是你上面实现接口的类.你可以自定义哈
紫魂一号 2013-01-25
  • 打赏
  • 举报
回复

配置共享数据源时做好处理还有就是,你可以在web.config 配置好用户和密码
创建一个类实现IReportServerConnection2 这个接口,这里面需要配置用户名和密码


public ICredentials NetworkCredentials
{
get
{
if (!string.IsNullOrEmpty(_username) &&
!string.IsNullOrEmpty(_password) &&
!string.IsNullOrEmpty(_domain))
{
return new NetworkCredential(_username, _password, _domain);
}
else
{
string strReportViewerUser =
System.Web.Configuration.WebConfigurationManager.AppSettings["ReportViewerUser"].ToString();

string strReportViewerPassword =
System.Web.Configuration.WebConfigurationManager.AppSettings["ReportViewerPassword"].ToString();

string strReportViewerDomain =
System.Web.Configuration.WebConfigurationManager.AppSettings["ReportViewerDomain"].ToString();

return new NetworkCredential(strReportViewerUser, strReportViewerPassword, strReportViewerDomain);
}
}
}

6,108

社区成员

发帖
与我相关
我的任务
社区描述
其他数据库开发 数据库报表
社区管理员
  • 数据库报表社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧