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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo 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;
            }
            }
        }