I need some solution where I can find bookmark from the template by bookmark name and replace my data into that bookmark.
Can you please suggest me?
I need some solution where I can find bookmark from the template by bookmark name and replace my data into that bookmark.
Can you please suggest me?
Hello,
The DOCXPath class (http://www.phpdocx.com/documentation/introduction/docxpath) available on Corporate and Enterprise licenses allow to accomplish what you need.
Regards.
Hello,
I have been tried with the DOCXPATH but it could not work for me.
What I wanted to do is, I have a template file in which there is some bookmarked content with the bookmark name as 'bookmark_name'. I have to find out that perticular bookmark by bookmark name and replace the content under that perticular bookmark only. Could you please suggest me how could I achive this?
Thanks,
Swati
I want something like this,
$current_date = date("m/d/Y");
//get the bookmark and create a new MS Word Range (to enable text substitution)
$bookmarkname = "TODAYDATE";
$objBookmark = $word->ActiveDocument->Bookmarks($bookmarkname);
$range = $objBookmark->Range;
//substitute the bookmark with actual value
$range->Text = $current_date;
Hello,
As your user doesn't have any license tied, please use the contact form (http://www.phpdocx.com/contact) to send the username and email of the user who purchased the license.
Regards.