Tema: PHPExcel
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 14/12/2011, 16:50
ocp001a
Colaborador
 
Fecha de Ingreso: mayo-2008
Ubicación: $MX['VZ']['Xalapa']
Mensajes: 3.005
Antigüedad: 16 años
Puntos: 528
Respuesta: PHPExcel

Te recomiendo mejor usar arreglos para aplicar los estilos, por ejemplo así:

Código PHP:
Ver original
  1. $miestilo= array(
  2.         'font' => array(
  3.             'bold' => true,
  4.             'color' => array(
  5.                 'rgb' => '000000'
  6.             )
  7.         ),
  8.         'fill' => array(
  9.             'type' => PHPExcel_Style_Fill::FILL_SOLID,
  10.             'startcolor' => array(
  11.                 'rgb' => 'DDDDDD'
  12.             )
  13.         )
  14.     );
  15.  
  16.         $objPHPExcel->getActiveSheet()->getStyle("A1")->applyFromArray($miestilo);