INFOPATH 2007:
Hello,
I have created a custom .aspx page and placed a XMLFORMVIEW control on it. I want to switch the view in XMLFormView control hosting an infoPath template programitically.
I tried to write the following line in Onload and Initilize on XMLFormView Control. The code is
XmlFormView1.XmlForm.ViewInfos.SwitchView("Approver1");
This is returning an "Object Reference not set to an instance of an object" error. Any ideas?
Please help.
Thanks