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
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
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 »

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.
Automation
In need of some credit
In need of some credit
Posts: 4
Joined: Mon Aug 21, 2023 10:19 am

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

Post by Automation »

Post Reply