[Solved] [Writer] Working with open Writer document

The Application Programming Interface and the OASIS Open Document Format

[Solved] [Writer] Working with open Writer document

Postby lopez » Mon Jun 08, 2020 4:02 pm

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
lopez
 
Posts: 2
Joined: Mon Jun 08, 2020 3:47 pm

Re: [Writer] Working with open Writer document

Postby JeJe » Mon Jun 08, 2020 5:26 pm

Enumerate the components to find the one you want, an example in Basic is here:
viewtopic.php?f=45&t=87507#p410596
Openoffice 4.1.6
Windows 8
JeJe
Volunteer
 
Posts: 1697
Joined: Wed Mar 09, 2016 2:40 pm

Re: [Writer] Working with open Writer document

Postby Villeroy » Mon Jun 08, 2020 5:30 pm

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
User avatar
Villeroy
Volunteer
 
Posts: 30279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Writer] Working with open Writer document

Postby lopez » Mon Jun 08, 2020 5:31 pm

Thanks for all. :D
OpenOffice 4.1.7 on Windows 10
lopez
 
Posts: 2
Joined: Mon Jun 08, 2020 3:47 pm


Return to UNO API and ODF

Who is online

Users browsing this forum: No registered users and 0 guests