Forum


Replies: 3   Views: 795
Docx variable using replacevariablebywordfragment
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 Exorion  · 07-05-2022 - 11:33

Hi For example if i have bold $VARIABLE$ and make just replace Variable By Text - everything in format is saved (bold, itallic etc) if i use replaceVariableByWordFragment - i can't be sure if format is still the same. I need to detect somehow is it bold or not (for example) and add it to a format of WordFragment.

Is it a easier way to save format of variable written and applied it to a WordFragment somehow?

Thanks