I'm starting using phpdocx today and was not able to have it working using a template.
What i did is creating a very simple template.docx file (few words) and then try to load it to a phpdocx element :
[code]
require_once(LIBPATH."/phpdoc/classes/CreateDocx.inc"); // where LIBPATH can be "../folder/"
$template="./template.docx";
if(!file_exists($template)) {
$this->setError("class createDOC render : unable to load DOC template : $template. exiting",true);
}
$t=new CreateDocx();
$t->addTemplate($template);
$t->createDocxAndDownload('bouh.docx');
[/code]
And each time the result is an "empty" docx file. I do not understand what happen. Version 2.4 (pro), i have added my key to the 'code' file and am on the correct domain www/myphpdocxdomain.com/mypath/myFile.php
any help / suggestion ?.