Hello,
there is two problems here
1/ the api of python does not seem to let me use
com.sun.star.script.Converter
2/ the main problem is to insert html content in odt keeping the format
so convert to string won't do it
sorry
Le 27/03/2023 à 13:15, sos a écrit :
We do it with the functions
We do it with the functions below
Function ClipboardAsText As String
Dim oClip As Variant, oClipContents As Variant, oTypes As Variant
Dim oConverter, convertedString As String
Dim i As Integer, iPlainLoc As Integer
iPlainLoc = -1
oClip =
createUnoService("com.sun.star.datatransfer.clipboard.Sys
Thanks
Ok it seem a goot way
maybe it is obvious but how can i paste the clipboard in my odt without
using dispatch
Le 26/03/2023 à 21:20, Caolán McNamara a écrit :
On Sun, 2023-03-26 at 12:06 +0200, Zorg wrote:
... We have try using XTransferable but without any success.
I think it sho
On Sun, 2023-03-26 at 12:06 +0200, Zorg wrote:
> ... We have try using XTransferable but without any success.
I think it should be possible in headless mode to use the clipboard
apis to copy and paste within LibreOffice. But in this case the
clipboard is basically a fake clipboard only for the hea
Hello
Thanks for your help but it won't really help me
it's doesn't matter the language, I could translate in python.
The main problem is to start from a variable (a html string)
Var1="Lorem Ipsum?Le Lorem Ipsum est
simplement du faux texte employé dans la composition et la mise en page
ava
I have no idea if this will be of any use to you or not, but...
I do not generally use the API using Python so I cannot comment on using
Python.
I have also not used headless mode so I cannot comment on what is and is not
available other than knowing that dispatches are not available.
Final