コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ReportesFacturas rpt = new ReportesFacturas();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            var fechainicial = dateTimePicker1.Value;
            var fechafinal   = dateTimePicker2.Value;

            var bindingSource = new BindingSource();

            bindingSource.DataSource = _facturaBL.ObtenerFacturas(fechainicial, fechafinal);

            var reporte = new ReportesFacturas();

            reporte.SetDataSource(bindingSource);


            crystalReportViewer1.ReportSource = reporte;
            crystalReportViewer1.RefreshReport();
        }