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.
I have the pro license and I've added the path to CreateDocX.inc ...
require_once('/sites/all/modules/toolkit_engagement/includes/phpdocx/classes/CreateDocx.inc');
But when I do
$docx = new CreateDocx();
$docx->addTemplate('path to template.docx');
I get: Call to undefined method CreateDocx::addTemplate()
I can however do:
$docx = new CreateDocxFromTemplate($_SERVER['DOCUMENT_ROOT']. '/includes/templates/meetingTemp.docx');
and it will work, but then I get an undefined method error when I try to do:
$docx->replaceTemplateVariableByHTML('MEETINGSCHEDULE', 'inline', $html);
Any idea why I can't use ANY of the methods used in the documentation on swapping variables with html?