Quantcast
Channel: Preguntas activas con las etiquetas phpword - Stack Overflow en español
Viewing all articles
Browse latest Browse all 27

Aplicar Color fondo PHPWORD

$
0
0

Estoy trabajando con PHPWORD, tengo una tabla que tiene solo 2 columnas y 5 filas, hasta ahora logro aplicar un color de fondo a toda la tabla pero lo que necesito es que cada columna tenga un color diferente pero la verdad no se como hacerlo, agradecería su ayuda.Mi código es el siguiente:

 $styleTable = array('borderColor' => '000000', 'borderSize' => 6, 'cellMargin' => 50, 'bgColor' => 'f2dbdb', 'size' => '12', 'bold' => true,); $styleTable2 = array('borderColor' => '000000', 'borderSize' => 6, 'cellMargin' => 50, 'bgColor' => 'FFFFFF', 'size' => '12', 'bold' => true,); $documento->addTableStyle('myTable', $styleTable); $table = $seccion->addTable('myTable'); $table->addRow(); $cell = $table->addCell(3600); $cell->addText('COORDINADOR CAMPOS CLINICOS SOLICITANTE'); $cell = $table->addCell(5500); $cell->addText(''); $table->addRow(); $cell = $table->addCell(3600); $cell->addText('CARRERA'); $cell = $table->addCell(5500); $cell->addText(''); $table->addRow(); $cell = $table->addCell(3600); $cell->addText('CENTRO FORMADOR'); $cell = $table->addCell(5500); $cell->addText(''); $table->addRow(); $cell = $table->addCell(3600); $cell->addText('PRÁCTICA CURRICULAR O INTERNADO (INDICAR LO QUE CORRESPONDE)'); $cell = $table->addCell(5500); $cell->addText(''); $table->addRow(); $cell = $table->addCell(3600); $cell->addText('DOCENTE ENCARGADA DE PRÁCTICA (CONTACTO Y CORREO ELECTRONICO)'); $cell = $table->addCell(5500); $cell->addText('');

Viewing all articles
Browse latest Browse all 27

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>