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

  • SEARCH
  • Home
  • 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 6571017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:49:44+00:00 2026-05-25T14:49:44+00:00

I am new to making reports and so far I can make crystal report

  • 0

I am new to making reports and so far I can make crystal report generate an initial report and the data it displays is correct, but when I try to add parameters and then try to rebind the dataset to crystal report it doesn’t seem to work. the data displayed is still the same.

I have tried the following code below in VS2005 and the “built in Crystal Report”.

` SiteReport newSiteRpt = new SiteReport();  
             DataSet ds = this.db.fillDS(dateTimePicker1.Value.ToShortDateString(),
                                         dateTimePicker2.Value.ToShortDateString());
             newSiteRpt.SetDataSource(ds);
             newSiteRpt.OpenSubreport("ChartReport").SetDataSource(subReportDS);
             this.crystalReportSiteViewer.ReportSource = newSiteRpt;
             this.crystalReportSiteViewer.Refresh();
           `

What could I be missing here?

thanks in advance.

  • 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-25T14:49:45+00:00Added an answer on May 25, 2026 at 2:49 pm

    I am answering my own question here.

    This thread gave me an idea on what I could be doing wrong.

    ** (Note : Names of DataSet & DataTables should be same as set in Report
    Document of Crystal Report during Design Time
    )
    **

    The report was using a different table name than the one in the dataset.

    To check the table name of the dataset you are using you can do:

    foreach(DataTable table in dataSet.Tables){
    Console.WriteLine(table.TableName);
    }

    Hope this helps someone in the future.

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

Sidebar

Related Questions

This can be done by making a new HTTP handler, but is there a
I'm not new to Rails or Rspec, but I'm new to making gems. When
Making a new site but something is happening to it in IE8. The social
Making a new site but something is happening to it in IE. I've purchased
Ok I'm making my first report from scratch so I'm fairly new to this.
I have existing reports that were fine in Report Builder 3, but now when
I am new to making WordPress themes but I have managed to include the
I am making a new Objective C class and it gave two options as
I am making a new application in MongoDB, and I have found that the
I'm making a new Mac OS X application. (not an iPhone app) This is

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.