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 7196951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:52:36+00:00 2026-05-28T20:52:36+00:00

I created 4 reports that contain information from 4 tables in a database. In

  • 0

I created 4 reports that contain information from 4 tables in a database. In my application I have a menuStrip that contains items that are named as this reports. How can I make my applications reportViewer display the report selected in the menuStrip?

I tried this code:

ReportDataSource RDS = new ReportDataSource();
RDS.Value = this.KontrolorKazneBindingSource;
reportViewer1.LocalReport.DataSources.Add(RDS);
reportViewer1.LocalReport.ReportPath = @"C:\Users\User\documents\visual studio 2010\Projects\Kontrolor\Kontrolor\KontrolorKazne.rdlc";
reportViewer1.RefreshReport();

But I get an error: A data source instance has not been suplied for the data source

Can you tell me what I’m doing wrong and how can I solve this problem?

  • 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-28T20:52:37+00:00Added an answer on May 28, 2026 at 8:52 pm

    First of all I think you should call reportViewer1.Reset() to tell ReportViewer to create a new LocalReport instance for you. (MSDN)

    After that you may give your ReportDataSource a name:

    ReportDataSource RDS = new ReportDataSource("YourReportDataSourceName");
    

    YourReportDataSourceName is the one you have set in report designer in the Report Data pane.

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

Sidebar

Related Questions

The Situation (Ignore this it is boring): I have reports that I created using
All of our reports are created from object graphs that are translated from our
I have a report that I created in SQL Server Reporting Services 2008. I
I have created a jasper report. In that report in detail areaI have serialNumber
Currently one of the reports reads the month_ref which is created like this: ((DATEPART(yy,
I have CMS table that contain CMS_STARTTIME and CMS_STOPTIME (attachment). alt text http://img339.imageshack.us/img339/755/exdatabase.jpg I
I have a query that produces a result like this: The data is sorted
I have a table that contains a history of costs by location. These are
I have an application (writted using Delphi 2009) that allows a user to run
As I understand from this database design question , you should use nullable fields

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.