Page 1 of 1

Does MailMerger handle mailing labels?

PostPosted: Thu Aug 30, 2012 7:16 am
by jallen
Hi Jason,

Does the mailmerger class handle mailing labels where merge fields are defined multiple times in one docx? Something like a 33 up avery label.

Thanks,
Jeff

Re: Does MailMerger handle mailing labels?

PostPosted: Thu Aug 30, 2012 11:38 am
by jason
Hi Jeff

Per http://office.microsoft.com/en-us/word- ... 8.aspx#BM4 you use standard MERGEFIELDs for mailing labels, so that much is OK.

MailMerger.getConsolidatedResultCrude takes as an argument List<Map<DataFieldName, String>>, so there should be no problem with the multiple definitions.

There remains the question of what separator appears between each label (a sectPr?).

cheers .. Jason