title: Generating word documents (.doc/.odt) through C++/Qt
body: <p>I am using Qt 4.5.3 and Windows XP. I need my application to generate documents that contains the information that is being used and generated. The information that is being used will be just strings (<code>QString</code> to be more specific) and the information that is being generated will be <strong>strings and images</strong> as well.</p>
  
  <p>I want documents to be a MS word document (<code>.doc</code>) or can be an Open Document Format (<code>.odt</code>) Also I want the documents to be formatted with <strong>fonts,images, tables of data, some background colors and all</strong>.</p>
  
  <p>I have done the creation <strong>PDF</strong> files using <code>QTextDocument</code>, <code>QTextCursor</code> and <code>QPrinter</code>. But when I tried to apply the same <code>QTextDocument</code> for <strong>odt</strong>, I ended up with just format error.</p>
  
  <p>Is there a way to generate such documents using any other libraries that use C++? How you guys use to generate such documents (<strong>.odt</strong>/.<strong>doc</strong>) in C++?  Any pointers, links, examples regarding this are welcome.</p>