<div dir="ltr"><div><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb">Otherwise, to insert data into a Writer document, merge fields are used.</span></span><br></span></div><div><span class="gmail-HwtZe" lang="en"><span class="gmail-jCAhz gmail-ChMk0b"><span class="gmail-ryNqvb">It is independent of the content (odt, html) however you need XRowSet or XResultSet as input...</span></span></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le sam. 13 avr. 2024 à 19:29, Andrew Pitonyak <<a href="mailto:andrew@pitonyak.org">andrew@pitonyak.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div dir="auto">I will not have access to check (probably only my phone for a week or two), but can you pull xtransferable content from a cursor or range?<br><br></div>
<div dir="auto">Get <a href="https://bluemail.me" target="_blank">BlueMail for Android</a> </div>
<div class="gmail_quote">On Apr 13, 2024, at 12:35 PM, Zorg <<a href="mailto:zorg@probesys.com" target="_blank">zorg@probesys.com</a>> wrote:<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<p>Hello</p>
<p>Hope some can help us here</p>
<p>Here is the problem</p>
<p><br>
We are developing our software using the uno api python (<a href="https://github.com/Probesys/lotemplate" target="_blank">https://github.com/Probesys/lotemplate</a>)<br>
</p>
<p>We try to copy a text in a odt file and paste it without loosing
the format of the text and without using the clipboard<br>
</p>
<p>We know how to paste html<br>
</p>
<p><a href="https://github.com/Probesys/lotemplate/blob/master/lotemplate/classes.py" target="_blank">https://github.com/Probesys/lotemplate/blob/master/lotemplate/classes.py</a>
(line 165-185)<br>
</p>
<p>but we don't know how we can't copy a selected text without
loosing format</p>
<p>Actually we use .insertString</p>
<p><a href="https://github.com/Probesys/lotemplate/blob/master/lotemplate/Statement/ForStatement.py" target="_blank">https://github.com/Probesys/lotemplate/blob/master/lotemplate/Statement/ForStatement.py</a>
(line 286)</p>
<p><br>
</p>
<p>I know it's possible to do it using
com.sun.star.datatransfer.clipboard.SystemClipboard</p>
<p>But in that case we must embed a Xserver inside the docker
container <span><span>what</span>
<span>we</span>
<span>want</span>
<span>to</span>
<span>avoid</span></span></p>
<p>S<span><span>o</span>
<span>if</span>
<span>anyone</span>
<span>wants</span>
<span>to</span>
<span>give</span>
<span>us</span>
<span>a</span>
<span>solution</span>
<span>or</span>
<span>a</span>
<span>hint</span>
<span>on</span>
<span>how</span>
<span>to</span>
<span>do</span>
<span>this</span></span></p>
<p><span><span>thanks<br>
</span> </span> </p>
<p>Zorg</p>
<p><br>
</p>
<div id="m_-1435423506380975279grammalecte_menu_main_button_shadow_host" style="width:0px;height:0px"></div>
</blockquote></div></div></blockquote></div>