Example #1
0
        public ActionResult DescargarReporteFormatoCSV()
        {
            var collection = PerfilesDAL.ListadoReporteBasico();

            byte[] buffer = GetCSV(columnasReportesBasicos, collection.Cast <object>().ToList());
            return(File(buffer, CSVContentType, $"ListadoPerfiles.csv"));
        }
Example #2
0
        public ActionResult DescargarReporteFormatoExcel()
        {
            var collection = PerfilesDAL.ListadoReporteBasico();
            var package    = GetEXCEL(columnasReportesBasicos, collection.Cast <object>().ToList());

            return(File(package.GetAsByteArray(), XlsxContentType, "ListadoPerfiles.xlsx"));
        }
Example #3
0
        public ActionResult DescargarReporteFormatoPDF()
        {
            // Seleccionar las columnas a exportar
            var collection = PerfilesDAL.ListadoReporteBasico();

            byte[] buffer = GetPDF(columnasReportesBasicos, collection.Cast <object>().ToList());

            return(File(buffer, PDFContentType, "ListadoPerfiles.pdf"));
        }