Who ever dreamed to convert HTML to a Word document? Lots of you as I can see on the forums…
This is a recurrent question on the OpenXml forums: "how can I convert (or insert) html to word?"
The classic answer is around the class altChunk as Eric White explain it.
One year ago, I needed to translate some HTML text from SharePoint rich text field to an OpenXml report. I managed to support the more common tags (<i>, <b>, <span>,<div>, …). All the tags wrote by SharePoint rich text field in compatible mode and those with the TinyMCE extension (as seen in one of my previous post).
I continued working on that little project to support even more HTML tags and now, I'm happy to announce you a new codeplex project Smile
Convert some Html chunks or an entire page to a Word 2007 document: http://notesforhtml2openxml.codeplex.com
Feel free to drop me a comment if you enjoy the library! [More]