Free Support Forum - aspose.com

Remove empty lines in region

Hi I would like to remove some empty lines that occur in a region. I have a word doc with 2 separate tables the first table is a column table and the other table is in a mail merge. After the merge I would like to get rid of the additional spaces so that the two tables look like one.


I included both the input and the output to help communicate the idea.

Thanks!

Hi Cameron,

Thanks for your inquiry.

The feature to achieve what you are looking for will be avaliable in the next version of Aspose.Words. This will be released within a week or so.

In the next version you can set RemoveEmptyParagraphs to true before executing mail merge. This will remove any of the empty paragraphs produced by the region tags and combine the table into one.

doc.MailMerge.RemoveEmptyParagraphs = true;

Thanks,

This feature is now available in this .NET update and in this Java update. You can now avoid empty paragraphs in repeating regions in this version by setting RemoveEmptyParagraphs to true.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.