Is there a dev kit/lib (written in c or c++) to write docx files? Microsoft has a dev kit, but it's written in C#.
Given the complexity of the XML schema behind OOXML (the Open Office XML file format behind .docx files), you might want to consider using a tool to help you create an XSLT stylesheet that can generate the required output XML. Then use one of the C based XSLT engines (XT or Xalan-c from memory) to do the transform(s) before zipping them up.
Altova's Stylevision looks to have good support for creating the stylesheets but I haven't used it myself. Might be worth a look.
Altova StyleVision's Word XSLT support
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With