Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7028725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:26:46+00:00 2026-05-28T00:26:46+00:00

I have a reporting services report that was designed in VS2010. When using ‘front

  • 0

I have a reporting services report that was designed in VS2010.
When using ‘front end’ report viewer and sqldatasource the report runs fine.
However, I am trying to change the reports datasource and parameters through the ‘code behind’. When I run the same report it throws this error ‘Illegal characters in path’.
So far I have not been able to find a cause. Below is the code behind…

Thanks for any and all assistance!!!

string strConnString = ConfigurationManager.ConnectionStrings["WISCConnectionString"].ToString();
    protected void Page_Load(object sender, EventArgs e)
    {



      getReport();





    }
    protected void getReport()
    {
        DataSet ds = getData();
        ReportDataSource rds = new ReportDataSource();
        rds.Name = "ParameterCorpBillDate";
        rds.Value = ds.Tables["ParameterCorpBillDate"];
        rds.DataSourceId = "SqlDataSource1";

        ReportViewer1.LocalReport.ReportPath = "Reports\rptPeriodAnalysisCorpBillDate.rdlc";
        ReportViewer1.LocalReport.DataSources.Clear();

        ReportViewer1.LocalReport.DataSources.Add(rds);


        ReportViewer1.LocalReport.Refresh();
        ReportViewer1.Visible = true;
    }


    private DataSet getData()
    {
        DataSet ds = new DataSet();


        SqlConnection sqlConnection = new System.Data.SqlClient.SqlConnection(strConnString);
        SqlDataAdapter dataAdapter = new System.Data.SqlClient.SqlDataAdapter();

        SqlCommand select = new System.Data.SqlClient.SqlCommand("uspWRPeriodAnalysisCORP_BillDate_noparam");
        select.CommandType = CommandType.StoredProcedure;
        select.Connection = sqlConnection;

        //select.Parameters.Add("@custid", SqlDbType.VarChar).Value = "SON";
        //select.Parameters.AddWithValue("@period_startdt", SqlDbType.VarChar).Value = "01/01/2011";
        //select.Parameters.AddWithValue("@period_ENDdt", SqlDbType.VarChar).Value = "12/31/2011";

        dataAdapter.SelectCommand = select;

        dataAdapter.Fill(ds, "ParameterCorpBillDate");

        return ds;
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:26:46+00:00Added an answer on May 28, 2026 at 12:26 am

    From previous user assistance…
    ReportPath = “Reports\rptPeriodAnalysisCorpBillDate.rdlc” – Hans Passant Sep 14 ’11 at 21:49

    escaping of backslash was over looked…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fairly basic SQL Server Reporting Services report that is using nested
I have a report in MS reporting services that renders just fine to the
We have are relatively simple Reporting Services report that our users commonly export to
I have an SQL Server Reporting Services (SSRS) report, that uses a view. That
I have a report in SQL Server Reporting Services (SSRS) that I'd like to
Here's my situation. I have a Microsoft Reporting Services report that as a parameter
I have a 2005 Reporting Services report that I display as a PDF through
Im currently developing av price list using SQL Reporting Services. In that report I
I am new to reporting services and have a reporting services 2005 report that
I have a Reporting Services 2005 report that has a tablerow with a background

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.