DataSourceCredentials and ReportViewer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top