PHP Classes

File: prueba.php

Recommend this page to a friend!
  Classes of Manuel   KExCel   prueba.php   Download  
File: prueba.php
Role: Example script
Content type: text/plain
Description: Ejemplo del uso de kexcel
Class: KExCel
Generate spreadsheets in Microsoft Excel format
Author: By
Last change:
Date: 18 years ago
Size: 775 bytes
 

Contents

Class file image Download
<? include "kexcel.php";

// crea y comienza la clase excel
$excel = new excel();
$excel->crear_excel();
//---------------------------------

// parametros de configuraciĆ³n
$excel->cuerpo_xml("hola");
//----------------------------------

// los datos se pasan por un array
$titulos = array ('titulo1','titulo2','titulo3');
$abajo = array('hola','hello' , 'buenas');
$abajo2 = array('mal','peor' , 'igual');
//------------------------------------

// 1 para titulos, 0 para resultados
$excel->td($titulos,1); // se
$excel->td($abajo,0);
$excel->td($abajo2,0);
//---------------------------------

// se cierra la clase
$excel->cerrar();
//-------------------------
// 1->header exporta , 0 -> imprime html
$excel->exportar("Nombre",1);

 
?>