< Day Day Up > |
The Application ObjectThe Application object represents the InfoPath application. Application Object MethodsThe Application object has four methods:
The Quit() MethodThe Quit() method is security level 3 and has a single boolean argument, which refers to whether the user is given the opportunity to save changes before InfoPath is closed. To close InfoPath without giving the user the option to save, use Application.Quit(false) . In the initial release of InfoPath, the Application.Quit(true) option does not produce the expected prompt to the user. If a user attempts to use the Quit() method in a form template that is not fully trusted, a "Permission Denied" error message is displayed. The ApplicationQuit.xsn form template demonstrates the Application.Quit() method. The Application.Quit() method is security level 3, so you must have a fully trusted form template to use it. The ApplicationQuit.msi installer provided in the download installs the form template to c:\Program Files\QuitExample . Application Object PropertiesThe Application object has six properties:
The form template ApplicationProperties.xsn demonstrates the use of some of the Application object properties. |
< Day Day Up > |