C++ open an odt file and save it in RTF

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
phil-ok
Posts: 1
Joined: Sun Sep 04, 2016 9:43 pm

C++ open an odt file and save it in RTF

Post by phil-ok »

Hello,
I just red this old post.
I hope you inbetween got the answer.
I have a C++ codeblock projet and I want to open an odt file and save it in RTF.
Could you please tell me what (and how) to install ?
Could you please also give me an example of how to open an odf file ?
Thanks in advance
Philippe

Split from topic with very different subject, floris v, moderator
Openoffice 4.1.1
User avatar
Zizi64
Volunteer
Posts: 11353
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: C++ open an odt file and save it in RTF

Post by Zizi64 »

Could you please tell me what (and how) to install ?
You need install the AOO or the LO (the whole office suite).
Of course you need install the C++ IDE (compiler, etc...)

You can use the API functions for the loading, saving and for the conversion. See the API descriptions ans Andrew Pitonyak's books.


I suppose, you need use the loadComponentFromURL() API function for open an .odf file, and the storeComponentToURL() or storeComponentAsURL() API function with a well adjusted export filter for the saving the converted file.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Post Reply