【发布时间】:2011-02-21 16:22:21
【问题描述】:
我在最近属于 Microsoft.Reporting.WebForms 命名空间的网页上成功使用了 Microsoft ReportViewer 控件。我使用 ReportViewer 的一个名为 Server.ReportServerCredentials 的属性来设置凭据(域、用户和密码)。我已经能够显示远程服务器上的报告。
现在,我需要做一些类似的事情,但我需要 Windows 形式的报告。我遇到的问题是我正在使用属于 Microsoft.Reporting.WinForms 命名空间的控件,并且属性 ReportServerCredentials 是只读的。
为什么对于一个控件,此属性是只读的,而另一个不考虑您需要设置凭据才能访问报告?我该如何解决这个问题?
【问题讨论】:
标签: .net winforms reporting credentials microsoft-reporting