Close InfoPath down - InfoPath Dev
in

InfoPath Dev

Close InfoPath down

Last post 08-10-2005 09:25 AM by Agni Jonnalagadda. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-10-2005 07:52 AM

    Close InfoPath down

    I have tried to use the Application object's Quit method to close InfoPath using C#, but I get a "System.Security.SecurityException"

    Specifically, when I find that an unauthorized user is attempting to open the form, I use the following syntax in an attempt to close the local copy of InfoPath:

    // thisApplication is an instance of the Application object
    thisApplication.Quit(false);

    Does anyone have an idea of what I might be doing wrong?

    Is there another approach?

    Thanks in advance
  • 08-10-2005 09:25 AM In reply to

    Hi rbbivens,

    Probably you might need thisXDocument.View.Window.Close(true); to close the current working infopath window.

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