Switching Views Programmatically in a windows form - InfoPath Dev
in

InfoPath Dev

Switching Views Programmatically in a windows form

Last post 12-18-2009 01:53 PM by Karsten Brocksieper. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-18-2009 01:01 PM

    Switching Views Programmatically in a windows form

    Hi guys,

     I have a program that is a tab control that displays via a web browser an infopath form. This form has 7 views. I am using sharepoint to host the forms which is where i query and retreive the forms. THese forms are specific to each client of ours. i need to be able to have a button on my windows form have an event that opens the form up and displays view 7. I currently have the button opening the form and creating the forms programmatically, but it goes to the default view. Is their a way to open this form up, with my button and open the alternate view that is stored on my sharepoint server?

     Any help would be great!

     

    Chris

  • 12-18-2009 01:53 PM In reply to

    Re: Switching Views Programmatically in a windows form

    Hello Chris,

    ... and welcome to our forum.

    Inside of the form you can use the following code line to switch between views:

    this.ViewInfos.SwitchView("YourViewName");

    In your case that you host an Infopath form in a client application I guess that the following article can help you...

    http://www.codeproject.com/KB/cs/InfoPath_WinForms_app.aspx

    Regards,

    Karsten
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.