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

Free Support Forum - aspose.com

Remove blank Space just after the merge field which contains Fragment:

Hello Team,

We have a requirement in .net application , we have a template that contains some merge field, some bookmarks, and some other special tags, So we want to remove blank space just after only that merge fields,which contains string "Fragment: ".
we are using Aspose Word dll version
Please find the attachment of sample template. It will help you for more understanding.

like in the attached template we have a merge field «Fragment: fc_caption» , So we want that we can remove extra blank space(blank line space) just after these type of merge fields only.
demo template.zip (9.1 KB)



To ensure a timely and accurate response, please attach the following resources here for testing:

  • Please attach the output Word file that shows the undesired behavior.
  • Please attach the expected output Word file that shows the desired behavior.
  • Please create a standalone console application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.