public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CryServicioPorEmpleado rpt = new CryServicioPorEmpleado(); rpt.Site = this.Site; return(rpt); }
//Metodo istancia el reporte que carga los datos //y asigna esos datos al informe private void cargar() { try { CryServicioPorEmpleado cry = new CryServicioPorEmpleado(); cry.SetDataSource(bllServicio.cargarServiciosPorEmpleadoConFecha(seleccionComboEncargado(), dtDel.Value, dtAl.Value)); this.reporte.ReportSource = cry; } catch (Exception ex) { MessageBox.Show(ex.Message, "Error de transacción", MessageBoxButtons.OK, MessageBoxIcon.Information); } }