Forum


Replies: 3   Views: 2045
Cómo aplicar un estilo a una tabla en replacevariablebyhtml
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  · 19-12-2018 - 16:43

Buenas.

Acabo de revisar la documentación que me indicabas y he visto que en el ejemplo se declaraban los estilos así:

$wordStyles = array('<table>' => 'LightListAccent3PHPDOCX', '<h1>' => 'Heading1PHPDOCX' , '.heading2' => 'Heading2PHPDOCX');

No sé por qué pero algunos estilos se asignan igual que en CSS (.heading2, p, etc) y otros no (<table>, <h1>, etc)

Cambiando table por <table>, el formateo de la tabla se realiza correctamente.

Gracias.

Saludos.