public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crCrossTab rpt = new crCrossTab(); rpt.Site = this.Site; return(rpt); }
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; }