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

Java, C++, C#, Delphi, ??? - Using the UNO bridges

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

Postby phil-ok » Sun Sep 04, 2016 9:53 pm

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
phil-ok
 
Posts: 1
Joined: Sun Sep 04, 2016 9:43 pm

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

Postby Zizi64 » Mon Sep 05, 2016 6:34 am

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; LO4.4.7, LO6.1.6 on Win7-10 x64Prof.
PortableApps, winPenPack: LO3.3.0-6.2.4; AOO4.1.5
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.
User avatar
Zizi64
Volunteer
 
Posts: 7964
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary


Return to External Programs

Who is online

Users browsing this forum: No registered users and 1 guest