public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { mainReport rpt = new mainReport(); rpt.Site = this.Site; return(rpt); }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { String type = comboBox1.Text; switch (type) { case "Select Report Type": break; case "Customers": { CustomerRprt myreport = new CustomerRprt(); crystalReportViewer1.ReportSource = myreport; break; } case "Appointments": { appRprt myreport = new appRprt(); crystalReportViewer1.ReportSource = myreport; break; } case "Customer & Appointment": { mainReport myreport = new mainReport(); crystalReportViewer1.ReportSource = myreport; break; } } }