Microsoft Word interoperability classes will let you get at a property called WordOpenXML
. This represents a package that will be stored - zipped up - in a .docx
file and can be opened by Microsoft Word. However, is there a way to convert this Package
to other formats, notably HTML?
I read in an answer to an old question that "Word 2007 has an API that you can use to convert to HTML. [...] You can find documentation around the API, but I remember that there is a convert to HTML function in the API." I'm not 100% sure which API that guy is talking about but perhaps it's System.IO.Packaging.Package
or something similar. I can't seem to find any "convert to HTML function"; does anyone know how you can convert a Package
format Word document into HTML?