Forum


Replies: 9   Views: 3458
Addtemplatevariable not working in word template footer
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 fueldigital-dev  · 19-03-2013 - 04:53

I am using word Template with different first page header and footer.

I need to add client names, reference and date in all the footer.

My first page footer is slightly different than the rest of them.
The problem is the addTemplateVariables works only in my first page, in the rest of the pages its not working.
Client Name: $CLIENT_NAME$ | Date: $INSPECTION_DATE$ | Job No: $REFERENCE$ | Page No: 1
Client Name: $CLIENT_NAME$ | Page No: 2

I will appreciate if anyone could tell me what i am doing wrong.

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

Hello,

Please contact us http://www.phpdocx.com/contact and send us your script and template to test it.

Regards.

Posted by fueldigital-dev  · 11-04-2013 - 12:13

any luck in solving problem ? I have e mailed the script and the template.

I have also tried placing the TemplateVariable in the different sections. It works everywhere except header and footer

Posted by fueldigital-dev  · 11-04-2013 - 12:13

could anyone please suggest an alternate way to add variables in the footer ?

Posted by fueldigital-dev  · 11-04-2013 - 12:13

it appears to be just in the latest version of MS office mac version. I copy pasted the header and footer in my other windows template and its working perfectly fine. s

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

Hello,

As we said you in our last email we're testing your issue to fix it.

Regards.

Posted by zevans  · 09-05-2013 - 18:35

I have the same problem I cannot get addTemplateVariable or getTemplateVariables to work in the footer.



Any resolution to this that could be posted to this board?



Thanks,



Zeb


Posted by jorgelj  · 10-05-2013 - 08:22

Hello,



Could you attach your document to check it?. We are solving an issue related to more than three footers that will be fixed in the next version of PHPDocX, but we could send you a test class to do it work.



Regards.


Posted by instituto_marques  · 14-01-2014 - 20:08

Hello,



In version 3.6 doesn't work neither, any ideas?



Thanks,