Forum


Replies: 1   Views: 4012
Remplazando un grafico por una variable
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 WestPoint  · 01-07-2014 - 08:43

Para substituir un grafico por una variable en un template utilizo este codigo pero me genera error: //Salvamos el documento $data = array( 'Legend 1' => array(20), 'Legend 2' => array(30), 'Legend 3' => array(40) ); $paramsChart = array( 'data' => $data, 'type' => 'pie3DChart', 'rotX' => 20, 'rotY' => 20, 'perspective' => 30, 'color' => 2, 'sizeX' => 10, 'sizeY' => 5, 'chartAlign' => 'center', 'showPercent' => 1, ); $variables = array( 'GRAPH1-1-1' => $chart, ); $docx->replaceVariableByWordFragment($variables, array('type' => 'block')); La variable que subsituyo del word es: GRAPH1-1-1 Gracias!

Posted by admin  · 01-07-2014 - 10:09

Hola, Igual que el otro post que has escrito, necesitamos que nos des más información. ¿Qué error te muestra? Saludos.