Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
How i will do ssrs reporting and the same reporting how i will use in asp.net
Posted

Hope this will help you..

Simple steps for developing SSRS Report
 
Share this answer
 
Please check the below link for ssrs report design
http://nileshpupadhyay.blogspot.com/2008/05/simple-steps-for-developing-ssrs-report.html[^]

After design in ur asp.net page

C#
MyReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
string username = System.Configuration.ConfigurationManager.AppSettings["ReportViewerUser"].ToString();
string password = System.Configuration.ConfigurationManager.AppSettings["ReportViewerPassword"].ToString();
string domain = System.Configuration.ConfigurationManager.AppSettings["ReportViewerDomain"].ToString();
MyReportViewer.ServerReport.ReportServerCredentials = new MyReportServerCredentials();
MyReportViewer.ServerReport.ReportServerUrl = new Uri(@"http://SERVER/Report");
MyReportViewer.ServerReport.ReportPath = "/FOLDERNAME/REPORTNAME";
MyReportViewer.ShowParameterPrompts = false;
MyReportViewer.ShowPrintButton = true;
//Microsoft.Reporting.WebForms.ReportParameter[] reportParameterCollection = new  Microsoft.Reporting.WebForms.ReportParameter[1];
//reportParameterCollection[0] = new Microsoft.Reporting.WebForms.ReportParameter();
//reportParameterCollection[0].Name = "INVOICEID";
//reportParameterCollection[0].Values.Add("ABC011223");
//MyReportViewer.ServerReport.SetParameters(reportParameterCollection);
MyReportViewer.ServerReport.Refresh();


//MyReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
//string ReportServerURL = System.Configuration.ConfigurationManager.AppSettings["ReportServerUrl"].ToString();
//MyReportViewer.ServerReport.ReportServerUrl = new Uri(ReportServerURL); MyReportViewer.ServerReport.ReportPath = "/Policy/NSP2Report_Memberid_new";
//Microsoft.Reporting.WebForms.ReportParameter[] RptParameters = new Microsoft.Reporting.WebForms.ReportParameter[2];
//RptParameters[0] = new Microsoft.Reporting.WebForms.ReportParameter("startmemberid", strSmid);
//RptParameters[1] = new Microsoft.Reporting.WebForms.ReportParameter("endmemberid", strEmid);
//MyReportViewer.ServerReport.SetParameters(RptParameters);
//MyReportViewer.ServerReport.Refresh();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900