Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string folder = System.Configuration.ConfigurationManager.ConnectionStrings["rptfolder"].ProviderName;
- string reportURL = "";
- reportURL = System.Configuration.ConfigurationManager.ConnectionStrings["rpturl"].ProviderName;
- ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
- ReportViewer1.ServerReport.ReportServerUrl = new Uri(reportURL);
- ReportViewer1.ServerReport.ReportPath = folder + "MileageReport";
- //ReportViewer1.ServerReport.ReportPath = folder + "testReport";
- //added by nilesh
- IReportServerCredentials irsc = new ReportCredentials(UserName, Password, System.Configuration.ConfigurationManager.ConnectionStrings["domain"].ProviderName);
- ReportViewer1.ServerReport.ReportServerCredentials = irsc;
- // bool isauthenticated = ReportViewer1.ServerReport.ReportServerCredentials.ImpersonationUser.IsAuthenticated;
- UserDataClass.LogError(userData.userId, "Not Error " + " UserName " + UserName + " Password " + Password + " Domain " +
- System.Configuration.ConfigurationManager.ConnectionStrings["domain"].ProviderName
- + " ReportPath " + ReportViewer1.ServerReport.ReportPath + " reportURL " + ReportViewer1.ServerReport.ReportServerUrl );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement