html to word mathml,How to convert word 2007 equation to MathML ?
Hi Vittal
I’m not quite sure how to interpret your question, but I can tell you that the equations you insert from the Word 2007 interface should be the same as you insert from the Word 2010 interface. And both of these are basically the same “OMath” XML - part of
the Office Open XML that was introduced with the new file formats in Office 2007.
So, theoretically, you should be able to get the “MathML” of an equation in a document opened in Word like this:
string s = ActiveDocument.OMaths(1).Range.WordOpenXML;
It will be embedded in OPC flat-file OOXML that defines a Word document. But you should have no trouble extracting it from that.Cindy Meister, VSTO/Word MVP
还没有评论,来说两句吧...