We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Custom placeholders in WORD for replacement

How can I use custom placeholders like "${placeholder}", instead of ">>placeholder<<" ?

3 Replies

SR Suganya Rathinam Syncfusion Team March 31, 2016 07:29 AM UTC

Hi Customer,

Thank you for contacting Syncfusion support.

You can use custom placeholders as text for replacing the document contents. For your reference we have prepared a sample to replace the custom placeholder text in the template document with another text content. Please find the sample from the following link and let us know if it helps.

Sample Link:
http://www.syncfusion.com/downloads/support/forum/123556/ze/Sample-1573347365.zip

If we misunderstood any of your requirement then kindly elaborate the actual requirement with detailed description. Thereby we will analyse further on the mentioned case and will provided you appropriate solution.

Regards,
Suganya



TE Testname March 31, 2016 09:51 AM UTC

If I have a list of text placeholder ,how to best replace the placeholder in my word file. What is the most performance way ?


SR Suganya Rathinam Syncfusion Team April 1, 2016 09:46 AM UTC

Hi Customer,

Find and Replace functionality of DocIO helps to find a given text in the Word document and replace the same with the new text. Mail merge functionality of DocIO helps to replace the Word document contents with the data from the data source using the Merge fields.

If your requirement is to replace same text throughout the Word document then you can use Find and Replace functionality of DocIO. If your requirement is to replace document contents dynamically from the database then you can use Mail merge functionality of DocIO. Please find the following UG documentations links for your reference.

Find and Replace using DocIO:
http://help.syncfusion.com/file-formats/docio/getting-started#modifying-an-existing-word-document

http://help.syncfusion.com/file-formats/docio/working-with-find-and-replace

Mail Merge using DocIO:
http://help.syncfusion.com/file-formats/docio/getting-started#performing-mail-merge

http://help.syncfusion.com/file-formats/docio/working-with-mailmerge

Online Demos Link:
http://asp.syncfusion.com/demos/web/docio/replacewithformating.aspx
http://asp.syncfusion.com/demos/web/docio/employeereport.aspx

Regards,
Suganya


Loader.
Live Chat Icon For mobile
Up arrow icon