We help IT Professionals succeed at work.
Get Started

Calling an SSRS from VS C# 2008

rwheeler23 asked
Last Modified: 2013-12-17
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?
public Form1()

            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)


Open in new window

Watch Question
Most Valuable Expert 2012
Top Expert 2008
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE