CrystalDecisions.CrystalReports.Engine.LogOnException:登录失败。 [英] CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.

查看:133
本文介绍了CrystalDecisions.CrystalReports.Engine.LogOnException:登录失败。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我创建了一个ReportViewer并将其绑定到我在同一个Web应用程序中创建的报表。当我运行应用程序时出现此错误,请帮助

I have created a ReportViewer and bound it to the report that i had created in the same webapplication. When i run the application i get this error, please help

CrystalDecisions.CrystalReports.Engine.LogOnException:登录失败。

CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.


问候

Sumi

推荐答案

您需要向查看者或报告传递登录信息。 ReportDocument有一个名为SetDatabaseLogon的方法,它有一些重载,你想要的方法将用户名和密码作为字符串参数。
You need to pass either the viewer or the report the logon information.  The ReportDocument has a method that is called SetDatabaseLogon that has a few overloads, the one you want takes the user name and password as string arguments.


这篇关于CrystalDecisions.CrystalReports.Engine.LogOnException:登录失败。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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