Forum


Replies: 4   Views: 3403
Add template chart
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 interfacerestauration  · 17-08-2011 - 13:29

Hello,

I found a bug in the PRO version of the library.

In 'Template_chart.php' (examples/easy/) when I try to generate the docx, there is a chart inside.
But when I change the variable $PIECHART$ with $PIECHART2$ in 'TemplateChart.docx' and I change the code:
$docx->addTemplateChart ('PIECHART2', $paramsChart); the graph is not created.

After that, there is no more chart with any variables... and I have to upload the first 'Template_chart.php' wich is contained in the librairy's ZIP file.

Have you any idea ?

Thanks

Posted by admin  · 11-04-2013 - 12:13

Hello,

Please try to rewrite the full placeholder. Sometimes word add tags inside WordML that can be cleared deleting and writing again the variable used as placeholder.

Regards. Jorge.

Posted by registerme  · 11-04-2013 - 12:13

Hi Administrator,

[b]FYI : We have multi domain licence of phpdocx. [/b]
We have the same issue, when i create a chart in local it works perfect, but deploying on the server it brings me the problem. It doesn't create chart in document, except this chart other things goes well. Even though the mod_xslt also enabled.
Even i re-created the template multiple times and tried with different placeholders for chart none of that brings the chart in document.

Below is my local and server configurations.

[b]Local XSL Configuration:[/b]
Php version : 5.3.1
XSL : enabled
libxslt Version : 1.1.26
libxslt compiled against libxml Version : 2.7.6
EXSLT enabled libexslt Version : 1.1.26



[b]Live XSL Configuration:[/b]
PHP Version : 5.1.6
XSL : enabled
libxslt Version : 1.1.17
libxslt compiled against libxml Version : 2.6.26
EXSLT enabled libexslt Version : 1.1.17

Let me know any solution.

Posted by admin  · 11-04-2013 - 12:13

Hello,

We recommend you to upgrade to PHP 5.2 or newer and enable phpdocx logs. I everything is working fine in you dev server, it should do the same in your production server if there's no problem in it config.

Regards.