Esempio n. 1
0
        private void GenerarReporte()
        {
            try
            {
                XROL_Rpt019_rpt Reporte = new XROL_Rpt019_rpt();

                Reporte.RequestParameters = false;
                ReportPrintTool pt = new ReportPrintTool(Reporte);

                pt.AutoShowParametersPanel = false;
                Reporte.Parameters["idNominaTipo"].Value      = ucRo_Menu.getIdNominaTipo() == ""?"0":ucRo_Menu.getIdNominaTipo();
                Reporte.Parameters["idNominaTipoLiqui"].Value = ucRo_Menu.getIdNominaTipoLiqui() == "" ? "0" : ucRo_Menu.getIdNominaTipoLiqui();

                Reporte.Parameters["fecha_inicio"].Value = ucRo_Menu.getFechaInicial();
                Reporte.Parameters["fecha_fin"].Value    = ucRo_Menu.getFechaFinal();

                Reporte.CreateDocument();
                Reporte.ShowPreview();
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
                MessageBox.Show(ex.ToString());
            }
        }