OpenOffice.org's API

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
alisandre
Posts: 1
Joined: Tue Mar 29, 2011 11:47 am

OpenOffice.org's API

Post by alisandre »

Hi. I'm going to do my first and maybe stupid question about Openoffice's API :)
I would create an ASP.NET Webservice that creates Openoffice's documents for a client.
1 The client send a question to Webservice saying it to create an odt from a ott model document
2 The server get the request, generates the document and return the URL of generated file.
3 The client open the url and view the document.

Is it possible? I have to write it in VB.NET and I've not idea where to start...maybe CLI?

Thank you in advance, Alessandra.
Alessandra - OpenOffice 3 - Windows Xp SP3
rudolfo
Volunteer
Posts: 1488
Joined: Wed Mar 19, 2008 11:34 am
Location: Germany

Re: OpenOffice.org's API

Post by rudolfo »

I am not really familiar with .NET. But as you are without an answer for some days now I can at least try to give you a starting point. If you can't use C# which has its own UNO interface, you can fall back on the OLE/COM automation interface of OpenOffice (only available for MS Windows, but I guess that's no additional limit if you have to use VB.NET anyway). The OLE/COM interface has some limitations compared to the other interfaces, but I think for basic usage like creating documents, using text cursors and saving documents it should work.
You would still need insights of the UNO object hierachy. The tools Xray or MRI and the UNO API documentation will help you.
OpenOffice 3.1.1 (2.4.3 until October 2009) and LibreOffice 3.3.2 on Windows 2000, AOO 3.4.1 on Windows 7
There are several macro languages in OOo, but none of them is called Visual Basic or VB(A)! Please call it OOo Basic, Star Basic or simply Basic.
Post Reply