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

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
tomay3000
I live to help wx-kind
I live to help wx-kind
Posts: 156
Joined: Mon Apr 24, 2017 4:23 am

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

Post by tomay3000 » Wed Jan 29, 2020 1:16 pm

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.

Post Reply