public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CryServicioPorEmpleado rpt = new CryServicioPorEmpleado();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
 //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);
     }
 }