Generating doc file using Qt4.3.3
-
doc is a closed file format. If you know the specifications (which I doubt you do), you can use QFile to output the data in the form you need. However, that probably is not a good plan.
What you could do, is export to .rtf. That format is open, and powerful enough for most purposes. Word reads it just fine. Alternatively, export to OpenDocument Format (.odf). Word can read it, (though I heard there are issues with it), and Qt is able to export to it.
Last, you may choose to use Word itself to write .doc documents, using ActiveX. You can use ActiveX though QAxObject.
-
As Microsoft made a promise to open their file formats it is not so closed any more. You can find the file specifications "here":http://msdn.microsoft.com/en-us/library/cc313118.aspx