Groups > Asp .Net > Advanced ASP.NET SQL Server Reporting Services > How to send credentials to reportserver with webform reportviewer??




How to send credentials to reportserver with webform
reportviewer??

How to send credentials to reportserver with webform reportviewer??
Fri, 28 Apr 2006 20:08:27 +000
Hello, I am having problems, I found no documentation in how to send the windows
credentials to this report . Anyone can help me with that line please!!!

 

string reportserver =
ConfigurationSettings.AppSettings["ReportServer"].ToString();

string reportfolder =
ConfigurationSettings.AppSettings["ReportFolder"].ToString();

string usuario =
ConfigurationSettings.AppSettings["Usuario"].ToString();

string clave= ConfigurationSettings.AppSettings["Clave"].ToString();

string dominio=
ConfigurationSettings.AppSettings["Dominio"].ToString();



try

{

rptViewer.ServerReport.ReportServerUrl = newUri(reportserver); 

rptViewer.ServerReport.ReportServerCredentials =    What should I do in this
line??

rptViewer.ServerReport.ReportPath = reportfolder +
"RPT_ResultadosEvaluacionRequisitosIndividuales"; 





}

catch (ReportSecurityException ex) 

{

lblSuccess.Text = "No tiene permisos para ver el reporte, informe a su
administrador"; 

}
Post Reply
about | contact