<html><head></head><body style="zoom: 0%;"><div dir="auto">The first step is always do it without a script until you like the result. Then you try to automate it.<br><br></div>
<div dir="auto">I did it a few times many years ago and do not remember the process.<br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->Get <!-- tmjah_g_1299e --><a href="https://bluemail.me"><!-- tmjah_g_1299s -->BlueMail for Android<!-- tmjah_g_1299e --></a><!-- tmjah_g_1299s --> <!-- tmjah_g_1299e --></div>
<div class="gmail_quote" >On Apr 6, 2022, at 3:37 PM, Marco Marinello <<a href="mailto:lists@marcomarinello.it" target="_blank">lists@marcomarinello.it</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="blue">Hi Andew,<br><br><br>thank you for your answer. I'll take a look at the links you pointed to.<br><br>The idea is, starting from a template in odt/doc/docx, to "fill in the<br>gaps" and save the filled document. Is there any other way rather than<br>mail merge?<br><br><br>All the best,<br><br>Marco<br><br><br>Il 06/04/22 18:19, Andrew Pitonyak ha scritto:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><br> I had planned on documenting how to do this some years back and<br> AndrewBase.odt, and my only notes say that I should document the new<br> e-mail merge API released in <a href="http://OpenOffice.org">OpenOffice.org</a> version 2.01; that was a<br> long time ago. <br><br> I generally do not have reason to use mailmerge, but did you want to<br> send something by email or to print? <br><br> Someone posted a question about using mail merge with UNO in Basic here: <br><br> <a href="https://ask.libreoffice.org/t/syntax-for-using-spreadsheet-as-data-source-in-emailmerge-macro/24831">https://ask.libreoffice.org/t/syntax-for-using-spreadsheet-as-data-source-in-emailmerge-macro/24831</a><br><br> From my perspective, the fact that they used the<br> server com.sun.star.text.MailMerge is useful in that it provides a<br> pointer to the service to look at. <br><br> Another request for help here: <br><br> <a href="https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=59312">https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=59312</a><br><br> No answer; sadly. <br><br> In AndrewMacro.odt, there is an example that merges a bunch of<br> documents from a directory into a single document and it is listed as<br> being related to "mail merge", so I assume that somebody had run a<br> mail merge and this processes created many documents. But again, I<br> have not run a mail merge in many years. <br><br> On Wednesday, April 06, 2022 06:47 EDT, Marco Marinello<br> <lists@marcomarinello.it> wrote:<br>  <br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> 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>  <br></blockquote><br><br>   <br></blockquote><br></pre></blockquote></div></body></html>