I was testing how to call an SSRS from with C#.
My server name is datamiing ( this is where SSRS is located)
The report name is Top20Vendors
The actual SQL instance were the SSRS database is located is dataserver
This program always crashes on the
line saying the path is invalid. I have tried every combination.
What am I missing here?
ReportViewer ReportViewer1 = new ReportViewer();
ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://datamining/reportserver");
List<ReportParameter> Parameters = new List<ReportParameter>();
string ParamValue = TextBox1.Text;
///''This is just an example of getting the value of a textbox
Parameters.Add(new ReportParameter("BegDate", "01/01/2010"));
Parameters.Add(new ReportParameter("EndDate", "12/31/2010"));
ReportViewer1.ServerReport.ReportPath = "//datamining/Reports/Top20Vendors";
ReportViewer1.ProcessingMode = ProcessingMode.Remote;
private void Form1_Load(object sender, EventArgs e)