Forum


Replies: 1   Views: 224
Example docx with placeholders
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 robertwas  · 21-11-2024 - 22:07

I am currently trying to use the replaceVariableByHTML function of phpdocx,
this is the main reason I bought the product.

However, I cannot get the code working for me, so i think that I my approach is wrong.
I have seen the sample code here, but this doesn't give much info.

Is there an example document to see how the placeholders are made?
I would be served best if somebody would tell me how to make those placeholders in word.
What I am trying to do now is adding Rich text fields and replacing the placeholder by the name I gave those fields, but that doesnt seem to work.

Thanks for the advice / info