private void pu_CargarReporte() { try { XROL_Rpt010_rpt Reporte = new XROL_Rpt010_rpt(); Reporte.RequestParameters = false; ReportPrintTool pt = new ReportPrintTool(Reporte); pt.AutoShowParametersPanel = false; Reporte.Parameters["p_IdEmpresa"].Value = IdEmpresa; Reporte.Parameters["p_idnomina"].Value = IdNomina; Reporte.Parameters["p_IdEmpleado"].Value = IdEmpleado; Reporte.Parameters["s_fechaInicial"].Value = FechaI; Reporte.Parameters["s_fechaFinal"].Value = FechaFin; Reporte.Parameters["s_iddivision"].Value = IdDivision; printControlReporte.PrintingSystem = Reporte.PrintingSystem; Reporte.CreateDocument(); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); } }
private void pu_CargarReporte() { try { XROL_Rpt010_rpt Reporte = new XROL_Rpt010_rpt(); Reporte.RequestParameters = false; ReportPrintTool pt = new ReportPrintTool(Reporte); pt.AutoShowParametersPanel = false; Reporte.Parameters["p_IdEmpresa"].Value = _idEmpresa; Reporte.Parameters["p_IdDepartamento"].Value = _IdDepartamento; Reporte.Parameters["p_IdEmpleado"].Value = _idEmpleado; Reporte.Parameters["s_fechaInicial"].Value = _fechaInicial; Reporte.Parameters["s_fechaFinal"].Value = _fechaFinal; Reporte.Parameters["s_FechaImpresion"].Value = param.Fecha_Transac; Reporte.Parameters["s_IdUsuario"].Value = param.IdUsuario.Trim(); printControlReporte.PrintingSystem = Reporte.PrintingSystem; Reporte.CreateDocument(); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); } }