Forum


Replies: 5   Views: 963
Formatear todo el texto de una tabla
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by rmartinez  · 23-11-2021 - 16:40

Hola de nuevo.

¿Cómo puedo cambiar el formato a todo el texto de una tabla?

Estoy probando con el siguiente código y funciona todo menos el tamaño de la fuente que deja la predeterminada del documento.

$first_col_table_styleOptions = array(
        'borderWidth' => 8,
        'cellMargin' => array('left' => 150, 'right' => 150),
        'firstColStyle' => array(
                'backgroundColor' => $main_hex_color,
                'rPrStyles' => array('color' => 'ffffff'),
        ),
        'rPrStyles' => ['fontSize' => 18],
);
$wf->createTableStyle('first_col_table'), $first_col_table_styleOptions);

Gracias.

Saludos.