If option MailMergeCleanupOptions.REMOVE_UNUSED_FIELDS is set then default style “Normal” is applied for empty (absent) fields in the table.
EmptyCells.zip (22.1 KB)
- Input document “test.docx”
- Java code which fills table “Table1” with values. Please note that a title “My title” should appear only in the first row.
- Output document “out.docx”.
In rows 2/3/4 the title is empty (this is correct) but its style is “Normal” with font size 12 although it should be 7.
How is it possible to inform Aspose.Words to keep the existing style (at least font name and font size) for merge fields with empty values?
Best regards, Evgeniy