|
| Re: ReportViewer, VS2005 and SSRS 2005 |
 |
Thu, 27 Apr 2006 21:37:49 +000 |
try this - works for me
...
ServerReport report = ReportViewer1.ServerReport;
report.ReportServerCredentials = new MyReportServerCredentials();
...
class MyReportServerCredentials : IReportServerCredentials
{
public MyReportServerCredentials()
{
}
public System.Security.Principal.WindowsIdentity ImpersonationUser
{
get
{
return null; // Use default identity.
}
}
public System.Net.ICredentials NetworkCredentials
{
get
{
return new System.Net.NetworkCredential("user",
"pass", "domain");
}
}
public bool GetFormsCredentials(out System.Net.Cookie authCookie,
out string user, out string password, out string authority)
{
authCookie = null;
user = password = authority = null;
return false; // Not use forms credentials to authenticate.
}
}
|
| Post Reply
|
|
|
|
|
|
|
|
|
|