Page 1 of 1

How to convert a .DOCX file to an .HTML one using C or C++?

Posted: Wed Jan 29, 2020 1:16 pm
by tomay3000
Hello,
I need a simple way using C or C++ to convert a .DOCX file to .HTML one.
Any hint, open-source if possible lightweight library or simply just the code that does the conversion would be appreciated.

I just need it for reporting.

My main C++ library is wxWidgets that offers only HTML for reporting (printing and previewing via wxHtmlEasyPrinting), so I want to make the client as comfortable as possible by using Microsoft Word, LibreOffice or WPS Office to edit the report template as needed rather than using a WYSIWYG HTML editor, and then I convert the .DOCX file on the fly (run-time) to get a final HTML stream or file in a temporary directory to use wxHtmlEasyPrinting.

TIA.