none
How to pass multiple datset to report using c#.net RRS feed

  • Question

  • How to pass multiple datset to report using c#.net
    • Moved by Bob Beauchemin Wednesday, February 9, 2011 4:42 AM Moved to a more appropriate forum (From:.NET Framework inside SQL Server)
    Tuesday, February 8, 2011 11:56 AM

Answers

  • Hi,

     Please try to add datasets by using following steps:

    Create a instance of report datasets and Fetch all records in report dataset. By repeating steps you can create multiple datasets for report.

    Then you can add datasets to report as follows

                    this.Reportviewer.LocalReport.DataSources.Clear();
                    this.Reportviewer.LocalReport.DataSources.Add(rdsDataSet1);
                    this.Reportviewer.LocalReport.DataSources.Add(rdsDataSet2);
                    this.Reportviewer.LocalReport.DataSources.Add(rdsDataSet3);
                    this.RptAssembly_Summart.LocalReport.Refresh();

     

    Hope this will help you.

    Please mark it as answer if its helps you in getting solution.

     


    Thanks, Pranil Yambal | MCTS | Pranil.Yambal@hotmail.com
    • Marked as answer by Amit Khese Tuesday, February 8, 2011 12:07 PM
    Tuesday, February 8, 2011 12:05 PM