[Solved] [Writer] Working with open Writer document

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
lopez
Posts: 2
Joined: Mon Jun 08, 2020 3:47 pm

[Solved] [Writer] Working with open Writer document

Post by lopez »

Hi,
I'm looking for a way to connect uno to an opened writer document. I try to open a new document and work with it with c#/uno and it works well.
But unfortunatly i need to interact with an already opened document.
Is there a way to do it ?

Thanks in advance
Last edited by Hagar Delest on Mon Jun 08, 2020 7:09 pm, edited 1 time in total.
Reason: tagged solved
OpenOffice 4.1.7 on Windows 10
JeJe
Volunteer
Posts: 2779
Joined: Wed Mar 09, 2016 2:40 pm

Re: [Writer] Working with open Writer document

Post by JeJe »

Enumerate the components to find the one you want, an example in Basic is here:
viewtopic.php?f=45&t=87507#p410596
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Writer] Working with open Writer document

Post by Villeroy »

http://www.openoffice.org/api/docs/comm ... entFromURL
returns the document no matter if it was already loaded or not.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
lopez
Posts: 2
Joined: Mon Jun 08, 2020 3:47 pm

Re: [Writer] Working with open Writer document

Post by lopez »

Thanks for all. :D
OpenOffice 4.1.7 on Windows 10
Post Reply