Page 1 of 1

Empty page with method getConsolidatedResultCrude

PostPosted: Sat Nov 22, 2014 12:43 am
by ccontreras
Hello!
Sorry, but I need your help. I'm calling to the method getConsolidatedResultCrude, to obtein a docx with a list like List<Map<DataFieldName, String>>. The problem is that the result show too an empty page al the final. How can I remove this page?

I write here my code:

org.docx4j.model.fields.merge.MailMerger
.setMERGEFIELDInOutput(OutputField.REMOVED);

wordMLPackage2 = org.docx4j.model.fields.merge.MailMerger
.getConsolidatedResultCrude(wordMLPackage, data, true);
wordMLPackage2.save(new File(destino));
System.out.println("Resulltado " + destino);


THANKS!!!!