private void GenerarReporte() { try { XACTF_FJ_Rpt002_Rpt Reporte = new XACTF_FJ_Rpt002_Rpt(); ReportPrintTool pt = new ReportPrintTool(Reporte); Reporte.Parameters["fechaInicial"].Value = Convert.ToDateTime(ucactF_Menu_Reportes1.dtpFechaIni.EditValue); Reporte.Parameters["fechaFinal"].Value = Convert.ToDateTime(ucactF_Menu_Reportes1.dtpFechaFin.EditValue); Reporte.Parameters["id_categoria"].Value = ucactF_Menu_Reportes1.barEditItemCategoria.EditValue == null ? 0 : Convert.ToInt32(ucactF_Menu_Reportes1.barEditItemCategoria.EditValue); printControl1.PrintingSystem = Reporte.PrintingSystem; Reporte.CreateDocument(); } catch (Exception ex) { } }
private void GenerarReporte() { try { XACTF_FJ_Rpt002_Rpt Reporte = new XACTF_FJ_Rpt002_Rpt(); Reporte.RequestParameters = false; ReportPrintTool pt = new ReportPrintTool(Reporte); pt.AutoShowParametersPanel = false; Reporte.Parameters["fechaInicial"].Value = Convert.ToDateTime(de_fecha_desde.EditValue); Reporte.Parameters["fechaFinal"].Value = Convert.ToDateTime(de_fecha_hasta.EditValue); Reporte.Parameters["id_categoria"].Value = cmb_categoria.EditValue == "" ? 0 : Convert.ToInt32(cmb_categoria.EditValue); printControl1.PrintingSystem = Reporte.PrintingSystem; Reporte.CreateDocument(); } catch (Exception ex) { } }