Ejemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            mainReport rpt = new mainReport();

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
        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;
            }
            }
        }