B
BillG
I am hard coding values for now just to get it working.
But here is my code.
reportViewer1.ServerReport.ReportServerUrl = new
Uri(@"http://MYDBSERVER/ReportServer/");
reportUrl = "/Events/GrievanceForm";
reportViewer1.ServerReport.ReportPath = reportUrl;
DataSourceCredentials credentials = new DataSourceCredentials();
credentials.Name = "?????????????????????????????????";
credentials.UserId = "username";
credentials.Password = "password";
reportViewer1.ServerReport.SetDataSourceCredentials(new
DataSourceCredentials[1] { credentials });
What do I put into credentials.Name???
Bill
But here is my code.
reportViewer1.ServerReport.ReportServerUrl = new
Uri(@"http://MYDBSERVER/ReportServer/");
reportUrl = "/Events/GrievanceForm";
reportViewer1.ServerReport.ReportPath = reportUrl;
DataSourceCredentials credentials = new DataSourceCredentials();
credentials.Name = "?????????????????????????????????";
credentials.UserId = "username";
credentials.Password = "password";
reportViewer1.ServerReport.SetDataSourceCredentials(new
DataSourceCredentials[1] { credentials });
What do I put into credentials.Name???
Bill