Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Redmond@139. wrote:

hello sir/madam
      I'm using Windows 7 and Visual Studio 2008 team version & 2013 commnunity version,and I 
have
installed libreoffice 5.0 sdk,I'm not too familar with C++ ,but my project was using VC++,so how
do I convert a *.rtf file to *.doc programmatically?any help would be appciated.
Regards
Ken


The easiest would be to use a command line, like
soffice --convert-to "doc:MS Word 97" yourfile.rtf --headless.

I have read somewhere that on Windows you have to use -convert-to instead of --convert-to. I can't 
check that as I don't have Windows.
Also you should give the complete path of the soffice binary, or make sure it is in a directory 
that appears in your PATH environment variable.

Hope this helps.
-- 
Piet van Oostrum <piet@vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.