Beispiel #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptListarCitasPrenatales rpt = new rptListarCitasPrenatales();

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        private void btnImprimir_Click(object sender, EventArgs e)
        {
            rptListarCitasPrenatales rListaPrenatal = new rptListarCitasPrenatales();

            rListaPrenatal.SetDataSource(oCitaPrenatal.ListaCitasPreNatal());

            frmReporteListaPreNatal fReporteListaPrenatal = new frmReporteListaPreNatal();

            fReporteListaPrenatal.crystalReportViewer1.ReportSource = rListaPrenatal;
            fReporteListaPrenatal.Show();
        }