We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Bold part of a mail merge field

Hi,

My platform currently uses Aspose Words for document generation. A need has arisen to update a standard merge field on multiple document templates. The requirement is just to append a static piece of text to the merge field on certain business logic. However this additional text contains bolding i.e.

text to be added:
“and others as specified in the Schedule” 'Schedule part is to be bold in the word doc and the rest plan text 'and others as '.

The string before that is a simple string however I need to know the best approach to achieve bolding in part of the merge field and not others in a programmatic way.

The business do not wish to add a separate merge field to all of the templates for the above text which could run into hundreds.

Could anyone please advise on the best approach.

Many Thanks,
Peter

Hi Peter,

Thanks for your inquiry. It would be great if you please share following detail for investigation purposes.


  • Please attach your input Word document.
  • Please
    attach your target Word document showing the desired behavior. You can
    use Microsoft Word to create your target Word document. I will
    investigate as to how you are expecting your final document be generated
    like.

As soon as you get these pieces of information to
us we’ll start working over your query.