Free Support Forum - aspose.com

Paragraph space after change when MailMerge

Hi,

please refer to the doc and code in the attachment.the customer using the last version of aspose word of android.the every Paragraph’s space after will increase to ten pounds when using MailMerge to generate doc.
how to solve this issue?

Hi there,


Thanks for your inquiry. We have tested the scenario using following code example and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSANDROID-193. You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

Document doc = new Document(MyDir + “in.docx”); <o:p></o:p>

doc.getMailMerge().execute(

new String[]{"Input1", "Input2", "Input3", "Input6", "shijian1", "shijian2", "Input15", "Input16", "Input17"},

new String[]{"Input1", "Input2", "Input3", "Input6", "shijian1", "shijian2", "Input15", "Input16", "Input17"});

doc.save(MyDir + "Out.docx");

@jingjizhi,

The issues you have found earlier (filed as WORDSANDROID-193) have been fixed in this Aspose.Words for Android via Java 17.9 update.

You may please use the following code to fix this issue:

LoadOptions lo = new LoadOptions();
lo.setMswVersion(MsWordVersion.WORD_2013);
Document doc = new Document("in.docx", lo);