SwitchViews - Error

E

esebastian

Hello Everyone,

I am using infopath 2007 and hosting it within visual studio windows
application with the formControl. My form has about 7 or 8 views in it
and all of a sudden when i try to switch the view (and i do this using
a button) i get the "InfoPath cannot execute any view-related object
model calls. The view is not ready." error. I have no idea what i've
done to make this happen or how to make it go away. Anyone know? One
thing i did try however was on my button events i call NotifyHost to
switch the view inside my windows form but initially that was working
and when i switch back to just switching the view inside my infopath
form i continue to get that error.

please help, this is most frustrating!

Thanks
 
E

esebastian

Hello Everyone,
It turns out that i had placed a few rules on various buttons to
switch views and then also programmatically switched views at the same
time. As most of you probably know you cannot switch views more than
once in one method call. I removed the rules and everything is great.
Thanks
 

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