Headless mail merge

Michael Weghorn m.weghorn at posteo.de
Thu Apr 7 04:33:24 UTC 2022


On 06/04/2022 12.47, Marco Marinello wrote:
> what's the easiest way to perform a mail-merge with libreoffice by
> passing arguments from an automated script? Should I use UNO?
> 
> Do you have any reference?

A rather complex example is the WollMux extension [1], in particular the 
"core/src/main/java/de/muenchen/allg/itd51/wollmux/mailmerge/" directory 
[2]. Class "OOoBasedMailMerge" [3] might be a good starting point.


[1] https://github.com/WollMux/WollMux

[2] 
https://github.com/WollMux/WollMux/tree/WollMux_18.2/core/src/main/java/de/muenchen/allg/itd51/wollmux/mailmerge

[3] 
https://github.com/WollMux/WollMux/blob/WollMux_18.2/core/src/main/java/de/muenchen/allg/itd51/wollmux/mailmerge/print/OOoBasedMailMerge.java


More information about the LibreOffice mailing list