<html><br />I had planned on documenting how to do this some years back and AndrewBase.odt, and my only notes say that I should document the new e-mail merge API released in OpenOffice.org version 2.01; that was a long time ago. <br /><br />I generally do not have reason to use mailmerge, but did you want to send something by email or to print? <br /><br />Someone posted a question about using mail merge with UNO in Basic here: <br /><br />https://ask.libreoffice.org/t/syntax-for-using-spreadsheet-as-data-source-in-emailmerge-macro/24831<br /><br />From my perspective, the fact that they used the server com.sun.star.text.MailMerge is useful in that it provides a pointer to the service to look at. <br /><br />Another request for help here: <br /><br />https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=59312<br /><br />No answer; sadly. <br /><br />In AndrewMacro.odt, there is an example that merges a bunch of documents from a directory into a single document and it is listed as being related to "mail merge", so I assume that somebody had run a mail merge and this processes created many documents. But again, I have not run a mail merge in many years. <br /><br />On Wednesday, April 06, 2022 06:47 EDT, Marco Marinello <lists@marcomarinello.it> wrote:<br /> <blockquote type="cite" cite="0610b508-4b2d-cd0d-7591-4b0ae6026163@marcomarinello.it">Hi all,<br /><br /><br />what's the easiest way to perform a mail-merge with libreoffice by<br />passing arguments from an automated script? Should I use UNO?<br /><br />Do you have any reference?<br /><br /><br />Thanks in advance,<br /><br />Best,<br /><br />Marco<br /><br /> </blockquote><br /><br /> </html>