Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            PatientPrescriptionReports rpt = new PatientPrescriptionReports();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        private void btnPrescriptionReport_Click(object sender, EventArgs e)
        {
            DataSet1TableAdapters.spPatientPrescriptionsTableAdapter pres = new DataSet1TableAdapters.spPatientPrescriptionsTableAdapter();
            pres.Fill(this.dataSet1.spPatientPrescriptions, Tools.UserName);
            PatientPrescriptionReports rpt = new PatientPrescriptionReports();

            rpt.SetDataSource(this.dataSet1);
            crystalReportViewer1.ReportSource = rpt;
            View(MainView.Report);
        }