Free Support Forum - aspose.com

Removing blank rows in table

Hi,

I have a table as attached.

On occasions, the two rows that start with AERDateLabel and AERHeader may contain no data so I set the fields to a space.

If it was a single row the commands

doc.MailMerge.RemoveEmptyParagraphs = True

doc.MailMerge.RemoveEmptyRegions = True

would delete the blank row. But this does not seen to work with two rows one after the other. Any ideas on how I could work around this?

Joe

Hi Joe,


Thanks for your inquiry. In your case, I suggest you to use custom logic for Unmerged Regions. Please read following documentation links for your kind reference:
http://www.aspose.com/docs/display/wordsnet/How+to++Apply+Custom+Logic+to+Unmerged+Regions
http://www.aspose.com/docs/display/wordsnet/How+to++Remove+Unmerged+Fields+and+Empty+Paragraphs+during+Mail+Merge
http://www.aspose.com/docs/display/wordsnet/How+to++Remove+Unmerged+Regions+from+a+Document

Hope this helps you. Please let us know if you have any more queries.