Converting a Word 2007 equation to MathML programatically

S

Steffen Rieke

Hello,

I'm using the new equation feature in Word 2007. When I select and copy such
an equation in Word, I can find its MathML representation in the clipboard.
But how can this be done programatically? I just can't find suitable methods
in the OMath object provided by the Word Object Model...

Can anyone of you help me?

Thanks in advance,
Steffen
 
S

Steffen Rieke

Now that I asked here, I found a solution for myself :)
I just have to copy the range of the equation and Word does the rest of the
job for me. OMath.Range.Copy() puts a nice pack of MathML code into my
clipboard and I can use it for my tasks.

But hey, can this be somehow done without using the clipboard? That would be
much more comfortable, because now I must not use the clipboard when my
program runs over hundreds of equations, else the result might be impacted by
some useless junk I accidently copied into the clipboard ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top