Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/02/2012, 09:16
Avatar de crissrocca
crissrocca
 
Fecha de Ingreso: febrero-2011
Mensajes: 51
Antigüedad: 13 años, 2 meses
Puntos: 1
limites usando Spreadsheet::WriteExcel

Buenas, he integrado Spreadsheet::WriteExcel para exportar listados de php a excel y actualmente funciona correctamente pero pagina los resultados. Si genero un informe de 800 lineas, me muestra exportar a excel ese listado en varios .xls

Me gustaria saber como se hace para cambiar esos limites, he modificado las siguientes lineas, pero continua igual.
Código PHP:
        // The maximun length for a BIFF record. See _add_continue()
       // Excel 2011 maximun 16384 kb
        
$this->_limit      16384;   

function 
_add_continue($data)
    {
        
$limit      $this->_limit;
        
$record     0x003C;         // Record identifier
 
        // The first 2080/8224 bytes remain intact. However, we have to change
        // the length field of the record.
        
$tmp substr($data02).pack("v"$limit-4).substr($data4$limit 4);
        
        
$header pack("vv"$record$limit);  // Headers for continue records
 
        // Retrieve chunks of 2080/8224 bytes +4 for the header.
        
for($i $limit$i strlen($data) - $limit$i += $limit)
        {
            
$tmp .= $header;
            
$tmp .= substr($data$i$limit);
        }

        
// Retrieve the last chunk of data
        
$header  pack("vv"$recordstrlen($data) - $i);
        
$tmp    .= $header;
        
$tmp    .= substr($data,$i,strlen($data) - $i);
 
        return(
$tmp);
    }