title: Add HTML String to OpenXML (*.docx) Document
body: <p>I am trying to use Microsoft's OpenXML 2.5 library to create a OpenXML document. Everything works great, until I try to insert an HTML string into my document. I have scoured the web and here is what I have come up with so far (snipped to just the portion I am having trouble with):</p>
  
  <pre><code>Paragraph paragraph = new Paragraph();
  Run run = new Run();
  
  string altChunkId = "id1";
  AlternativeFormatImportPart chunk =
         document.MainDocumentPart.AddAlternativeFormatImportPart(
             AlternativeFormatImportPartType.Html, altChunkId);
  chunk.FeedData(new MemoryStream(Encoding.UTF8.GetBytes(ioi.Text)));
  AltChunk altChunk = new AltChunk { Id = altChunkId };
  
  run.AppendChild(new Break());
  
  paragraph.AppendChild(run);
  body.AppendChild(paragraph);
  </code></pre>
  
  <p>Obviously, I haven't actually added the altChunk in this example, but I have tried appending it everywhere - to the run, paragraph, body, etc. In ever case, I am unable to open up the docx file in Word 2010.</p>
  
  <p>This is making me a little nutty because it seems like it should be straightforward (I will admit that I'm not fully understanding the AltChunk "thing"). Would appreciate any help.</p>
  
  <p>Side Note: One thing I did find that was interesting, and I don't know if it's actually a problem or not, is <a href="https://stackoverflow.com/a/12295441/132528">this response</a> which says AltChunk corrupts the file when working from a MemoryStream. Can anybody confirm that this is/isn't true?</p>