Este proyecto de codeigniter incluye la librería xlsxwriter, las ventajas son la base de php para generar los reportes, solo configuras las variables en el controlador y el reporte se genera conforme a los valores:
$fecha_hoy=date('d-m-Y');
$ruta_descarga = 'C:/tmp/xlsx/SC/';//no olvides el / del final
$nombre_carpeta_a_descargar = 'FOLDER';
$datos_reporte_serializado = FALSE; //CACHE SERIALIZADO (NO ALMACENAR MAS DE 100 MIL REGS)
$descarga_nav = FALSE; //ESTO HABILITA O DESHABILITA LA DESCARGA
$bd = "TU_BASEDEDATOS";
$tabla = "TU_TABLAOVISTA";
//WHERE
$wheres = "";
$prefijo_reportes_archivos = "Nombre del Reporte ";
$momento = "{$fecha_hoy}";//date("Y-m-d h-i-s"); //AQUI PUEDES AGREGAR MAS DETALLES DE LA HORA
$autorxlsx = 'DANIEL GUZMÁN';
$compañiaxlsx = 'COMPAÑIA CORP.';
$descripcionxlsx = '';
$registros_por_excel = 500000; //reducir si el excel se corrompe
Features
- Configura, ejecuta y recibe tu reporte