Infopath change view error

N

Nick

When the view is switched to a particular view, I have the OnSwitch event
fire, and say:
if(e.XDocument.View.Name == "SomeView" && someothercondition)
{
e.XDocument.View.Switch("NewerView");
}

When I try this, it give me a Com exception error, and says the view is not
ready.
Any insight?
 

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