private void GenerarReporte() { try { XACTF_FJ_Rpt003_Rpt Reporte = new XACTF_FJ_Rpt003_Rpt(); Reporte.RequestParameters = false; ReportPrintTool pt = new ReportPrintTool(Reporte); pt.AutoShowParametersPanel = false; Reporte.Parameters["IdEmpresa"].Value = param.IdEmpresa; Reporte.Parameters["IdCentro"].Value = uCct_CentroCosto1.Get_IdCentroCosto(); Reporte.Parameters["IsSubcentro"].Value = uCct_CentroCosto1.Get_IdSubCentro_Costo(); printControl1.PrintingSystem = Reporte.PrintingSystem; Reporte.CreateDocument(); } catch (Exception ex) { } }
private void GenerarReporte() { try { XACTF_FJ_Rpt003_Rpt Reporte = new XACTF_FJ_Rpt003_Rpt(); Reporte.RequestParameters = false; ReportPrintTool pt = new ReportPrintTool(Reporte); Reporte.Parameters["IdEmpresa"].Value = param.IdEmpresa; Reporte.Parameters["IdCentro"].Value = (ucactF_Menu_Reportes1.cmb_centro_costo.EditValue == null)?"":ucactF_Menu_Reportes1.cmb_centro_costo.EditValue.ToString(); Reporte.Parameters["IsSubcentro"].Value = (ucactF_Menu_Reportes1.cmb_subcentrocosto.EditValue == null)?"":ucactF_Menu_Reportes1.cmb_subcentrocosto.EditValue.ToString(); Reporte.Parameters["ubicacion"].Value = (ucactF_Menu_Reportes1.bariten_ubicacion.EditValue); Reporte.Parameters["fi"].Value = (ucactF_Menu_Reportes1.dtpFechaIni.EditValue); Reporte.Parameters["ff"].Value = (ucactF_Menu_Reportes1.dtpFechaFin.EditValue); printControl1.PrintingSystem = Reporte.PrintingSystem; printControl1.Enabled = true; Reporte.CreateDocument(); } catch (Exception ex) { } }