XDocument.Errors with external automation

V

Vlad Simionescu

Hello

Please help me with a problem. I try to access the Errors property of
an InfoPath XDocument via external automation. Specifically, I use an
InfoPath.Application object to retrieve an XDocument from its
XDocuments property, then try to access the Errors property. I get an
exception "No such interface supported.". I have a strong hunch that
something is not working properly in the context of external
automation, since I can very well access the Errors property, cycle
through it and display all short error messages from within the form,
from a script, but I cannot do the same thing with the same form from
outside InfoPath. While I can do other more complex and potentially
more security-threatening operations without any trouble, such as
accessing the DOM.

Any help will be much appreciated.

V. Simionescu
 

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