Hi , I have a big trouble, is anyone knows how to change view from web hosting C# code ?
My trouble is , I write a aspx page and using form control to embeded a infopath web form into my page, I write code when the form is loading to change the view ,like this
formControl1.XmlForm.ViewInfos.SwitchView("view1");but it seems it did not work , and it said this feature is not supported when the web form loading.
is there any other way to implement it, I want to : change the form view when the form is loading from the hosting web page using C# code.
thanks a lot !