Close infopath form in code - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Close infopath form in code

Last post 12-08-2005 06:33 PM by franck. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 12-08-2005 08:41 AM

    • Sulla
    • Not Ranked
    • Joined on 11-29-2005
    • Posts 4

    Close infopath form in code

    In the submit button's click event I would like to close the infopath form. How do I do that? The following ways do not work.

    thisApplication.ActiveWindow.Close(false);
    thisApplication.ActiveWindow.Close(true);
    this.thisApplication.Quit(true);
    this.thisApplication.Quit(false);
    thisApplication.Windows[0].Close(true);
    thisApplication.Windows[0].Close(false);

    Thanks!
  • 12-08-2005 08:50 AM In reply to

    • Sulla
    • Not Ranked
    • Joined on 11-29-2005
    • Posts 4

    Re: Close infopath form in code

    thisApplication.XDocuments.Close(0);

    This seems to work. Not sure if it is the right way to do it or not...
  • 12-08-2005 06:33 PM In reply to

    Re: Close infopath form in code

    Hi,

    Look at:
    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=688
    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=194

    Franck Dauché
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.