html to word mathml,How to convert word 2007 equation to MathML ?

左手的ㄟ右手 2022-10-09 12:04 81阅读 0赞

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

发表评论

表情:
评论列表 (有 0 条评论,81人围观)

还没有评论,来说两句吧...

相关阅读