private void CustomerReportForm_Load(object sender, EventArgs e) { this.customerTableAdapter1.Fill(this.dataSet2.customer); this.configurationTableAdapter1.Fill(this.dataSet2.configuration); CustomerReport rpt = new CustomerReport(); rpt.SetDataSource(this.dataSet2); crystalReportViewer1.ReportSource = rpt; }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CustomerReport rpt = new CustomerReport(); rpt.Site = this.Site; return rpt; }