locked
Create a graph and a report from same dataset in rdlc reports RRS feed

  • Question

  • I have created a winform data entry connected to .accdb as source The entry part is done, and i have given a button to open another which must contain the summary of the data in table & in graph format.

    I have created the table successfully in "Report1.rdlc" and used it in my form2 using report viewer.

    I have created another report"report2.rdlc" and when i used it in my form2 using report viewer the below error is coming:

    A data source instance has not been supplied for the data source 'Dataset1'

    and here is the code for form load event

    namespace WindowsFormsApp1
    {
        public partial class MS_Dies_Report : Form
        {
            public MS_Dies_Report()
            {
                InitializeComponent();
            }
    
            private void MS_Dies_Report_Load(object sender, EventArgs e)
            {
                // TODO: This line of code loads data into the 'TrialDataSet.MSdies' table. You can move, or remove it, as needed.
                this.MSdiesTableAdapter.Fill(this.TrialDataSet.MSdies);
    
                this.reportViewer1.RefreshReport();
                this.reportViewer2.RefreshReport();
            }
        }
    }

    Thursday, July 30, 2020 8:19 AM

Answers