Page 1 of 1

OpenOffice.org's API

Posted: Tue Mar 29, 2011 11:54 am
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.

Re: OpenOffice.org's API

Posted: Mon Apr 04, 2011 6:26 pm
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.