Free Support Forum - aspose.com

Aspose.Words Blank Lines on Merge

Will Aspose.Words in the mail merge do the following:

field1

field2

field3

field4

If Field3 has no data it will look like this:

field1

field2

field4

If the past (2007ish) it would not and just leave a blank line.

Thanks

Rollie

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. If you would like to delete all empty mergefields, you can try using the following code before saving:

doc.MailMerge.DeleteFields();

Please see the following link for more information.

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/aspose.words.reporting.mailmerge.deletefields.html

Hope this helps,

Best regards,