include_once('globals.php'); ?> $charset = "UTF-8"; header('Content-Type: text/html; charset=' . $charset); function HeaderingExcel($filename) { header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=$filename" ); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0,pre-check=0"); header("Pragma: public"); } //------------------------------------------------------------------------------ include "librerias/inc/conexion.inc.php"; include "librerias/inc/cadenas.inc.php"; require_once "librerias/class/excelwrite/Worksheet.php"; require_once "librerias/class/excelwrite/Workbook.php"; $db = conectar_db(); /***************************************************************************** FUNCIONES PHP ******************************************************************************/ // Muestra cabecera de tabla del reporte function tabla_cabecera() { GLOBAL $campos; //echo "