public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { SFCustomer rpt = new SFCustomer(); rpt.Site = this.Site; return(rpt); }
private void memberListToolStripMenuItem_Click(object sender, EventArgs e) { sf = new Sportsfacilities(); SportsfacilitiesTableAdapters.CustomersTableAdapter ta = new SportsfacilitiesTableAdapters.CustomersTableAdapter(); ta.Fill(sf.Customers); SFCustomer cr = new SFCustomer(); cr.SetDataSource(sf); crystalReportViewer1.ReportSource = cr; DisplayResults(); }