private void FacilityBookingChartForm_Load(object sender, EventArgs e) { DataSetCrossTab dsCrossTab = new DataSetCrossTab(); AvailabilityTableAdapter ta = new AvailabilityTableAdapter(); ta.Fill(dsCrossTab.Availability); Reports.BookingCountByDayChart crChart = new Reports.BookingCountByDayChart(); crChart.SetDataSource(dsCrossTab); crystalReportViewer1.ReportSource = crChart; }
private void BookingCountByDayReport_Load(object sender, EventArgs e) { DataSetCrossTab dsCrossTab = new DataSetCrossTab(); AvailabilityTableAdapter ta = new AvailabilityTableAdapter(); ta.Fill(dsCrossTab.Availability); BookingCountByDayReport crCtab = new BookingCountByDayReport(); crCtab.SetDataSource(dsCrossTab); crystalReportViewer1.ReportSource = crCtab; }
private void crystalReportViewer1_Load(object sender, EventArgs e) { DataSetCrossTab ds = new DataSetCrossTab(); DataSetCrossTabTableAdapters.CustomerTableTableAdapter ct = new DataSetCrossTabTableAdapters.CustomerTableTableAdapter(); ct.Fill(ds.CustomerTable); DataSetCrossTabTableAdapters.TransactionTableTableAdapter tt = new DataSetCrossTabTableAdapters.TransactionTableTableAdapter(); tt.Fill(ds.TransactionTable); DataSetCrossTabTableAdapters.CourtTableTableAdapter crtt = new DataSetCrossTabTableAdapters.CourtTableTableAdapter(); crtt.Fill(ds.CourtTable); crCrossTab cr = new crCrossTab(); cr.SetDataSource(ds); crystalReportViewer1.ReportSource = cr; }