Sandeep Gowda

Sandeep Gowda

  • NA
  • 27
  • 70.2k

how to use multiple dataset in crystal report

Nov 22 2012 7:40 AM
Hello All,

I have two data sets files created., So how to bind this two data set for crystal report.


I'm binding values using crystal report viewer.


my code is:
private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            Ds_patientvitals ds_vitals = new Ds_patientvitals();
            Ds_patientvitals.DataTable1DataTable xsdtt1 = new 
            Ds_patientvitals.DataTable1DataTable();
            ds_vitals.Merge(ds_patientdetails);
            Cry_patientvitals cry1 = new Cry_patientvitals();

            cry1.SetDataSource(ds_vitals.Tables[1]);
            crystalReportViewer1.ReportSource = cry1;
            crystalReportViewer1.Refresh();
            cry1.PrintToPrinter(1, true, 1, 1);
        }
Here only one dataset that I can bind for crystal report viewer another dataset can' able to bind.. So how to bind other for this crystal report..

Please anyone help me soon.