Forum


Replies: 1   Views: 12
Example docx with placeholders

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