How can I close form in managed code (C#)? - InfoPath Dev
in

InfoPath Dev

How can I close form in managed code (C#)?

Last post 10-28-2009 09:57 PM by Honey_hhv. 18 replies.
Page 2 of 2 (19 items) < Previous 1 2
Sort Posts: Previous Next
  • 01-05-2009 06:33 AM In reply to

    Re: How can I close form in managed code (C#)?

    Hi,

    You can directly close the form using rules. Here is the link to close the forms using vb.

    http://techdhaan.wordpress.com/2008/06/03/close-infopath-forms-services-form-using-code/

    Hope it will solve your problem.

     

    Swathip
    www.ggktech.com
  • 04-09-2009 03:23 PM In reply to

    Re: How can I close form in managed code (C#)?

    An InfoPath project in Visual Studio typically has a reference to Microsoft.Office.InfoPath.dll in the C:\Program Files\Microsoft Office\Office12\InfoPathOM\ folder. Remove that reference, and add a reference to the Microsoft.Office.InfoPath.dll file in the C:\Program Files\Microsoft Office\Office12\ folder. You should be able to see the additional methods (including Quit()) in the intelliSense dropdown after that.

    http://coredotnet.blogspot.com
  • 10-28-2009 09:56 PM In reply to

    Re: How can I close form in managed code (C#)?

    Hello dear

    I have a button in form and i handle click event for that (in code) to save in My sharepoint Document Library.(it works well)

    so after saving without error, i want to close form (i cannot use a Close Rule for that , because it occurs before click event) 

    or redirect it to Document Library (this part is the problem ), how can i solve it?

    although i didn't read your link yet, maybe it helps!! ;)

    i should add my form is browser enabled, too. and jscript it's not work

    although i test thease code too, and did not work when i publish form to sharepoint :

    1- System.Diagnostics.Process.Start("iexplore.exe", URL);

    2- System.Web.HttpRequest.Current.Response.Redirect(System.Web.HttpContext.Current.Request.UrlReferrer.OriginalString);

  • 10-28-2009 09:57 PM In reply to

    Re: How can I close form in managed code (C#)?

    Hello dear

    No,I have a button in form and i handle click event for that (in code) to save in My sharepoint Document Library.(it works well)

    so after saving without error, i want to close form (i cannot use a Close Rule for that , because it occurs before click event) 

    or redirect it to Document Library (this part is the problem ), how can i solve it?

    although i didn't read your link yet, maybe it helps!! ;)

    i should add my form is browser enabled, too. and jscript it's not work

    although i test thease code too, and did not work when i publish form to sharepoint :

    1- System.Diagnostics.Process.Start("iexplore.exe", URL);

    2- System.Web.HttpRequest.Current.Response.Redirect(System.Web.HttpContext.Current.Request.UrlReferrer.OriginalString);

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