private void button_Click(object sender, RoutedEventArgs e) { ReportDocument report = new ReportDocument(); report.Load("..\\..\\SampleCrystalReport.rpt"); using (SampleModel db = new SampleModel()) { SampleDataSet dataset = new SampleDataSet(); System.Data.DataSet dsCopy = dataset.Copy(); SampleDataSetTableAdapters.batchTableAdapter adapter = new SampleDataSetTableAdapters.batchTableAdapter(); adapter.Fill(dataset.batch); report.SetDataSource(dataset); } crystalReportsViewer1.ViewerCore.ReportSource = report; }