Word Exception 0x800A17EA -action invalid outside block-level XML

P

Petrowi

This code
wdDocument.Content.FormattedText = tempWdDoc.Content.FormattedText;

Throws an exception:

System.Runtime.InteropServices.COMException (0x800A17EA): This action is
not valid outside of a block-level XML element.
at Microsoft.Office.Interop.Word.Range.set_FormattedText(Range prop)


Both documents have XML markup in them and opened separately look ok.

Any ideas what does the error mean or what causes it?

Thank you.
 

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