get WordML version of a doc??

M

Marc Thompson

Hello there, I am acutally writing a COM addin for word 2003 but to solve
this problem, I've just taken a line of code from my COM project and put it
in a vba macro to isolate the problem.

Sub Macro1()
MsgBox (Application.ActiveDocument.Content.XML)
End Sub

"Application.ActiveDocument.Content.XML" returns a string that is a WordML
version of the doc.

This works for most documents, however for some, this causes Word to not
respond (seems to do this more often when the doc has tables). It looks
like word is saving the document or something because the "saving" progress
bar in the lower left hand corner of word appears when this line is
executed.

Does anyone know anything about this or have any suggestions?

Thanks,
Marc
 

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