Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a dev kit/lib (written in c or c++) to write docx files? [closed]

Tags:

c++

c

docx

openxml

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#.

like image 748
Kevin Avatar asked Aug 06 '10 00:08

Kevin


1 Answers

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

like image 191
Simon Collins Avatar answered Sep 22 '22 05:09

Simon Collins