示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CR_PC rpt = new CR_PC();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            CR_PC _Rpt = new CR_PC();

            var reporte = new ReporteProductosPorConsola();


            _Rpt.SetDataSource(reporte.ObtenerDatosParaReporte());

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