Forum


Replies: 2   Views: 3423
Addtemplateimage
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 turbo124  · 04-04-2011 - 14:12

require_once '../../classes/CreateDocx.inc';

$docx = new CreateDocx();

$docx->addtemplate('image.docx');


$docx->addTemplateVariable('WEIGHT1', '20');
$docx->addTemplateImage('IMAGE1', '../files/img/image.png');

$docx->createDocx('a.docx');



TemplateVariable gets inserted, but Template Image does not. I've tried all different permutations, but am coming to the conclusion that this library is half baked. At best....

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

Hi,

Have you tried included examples?. Are they working in your server?.

Regards.