The ExternalApplication Object

 <  Day Day Up  >  

The ExternalApplication Object

The ExternalApplication object represents the InfoPath 2003 application. The ExternalApplication object can be used to automate InfoPath partially with COM (Component Object Model) programs. InfoPath 2003 does not support full automation, in contrast to several other Microsoft Office applications.

The operations supported in InfoPath 2003 are the creation of an InfoPath form template, opening or closing a form, registering or unregistering a form, and closing a form or quitting the InfoPath application.

ExternalApplication Object Methods

The ExternalApplication object has eight methods:

  • CacheSolution() ” Causes a form template to be updated if the cached version of a form template does not match the version at the form template's published URL. Security level 3.

  • Close() ” Closes a specified form. The method's argument is a URL. Security level 3.

  • New() ” Creates a new form based on an existing form ( .xml file). The existing form is specified in the method's URL argument. The New() method is not used to create a form from a form template ( .xsn file), in contrast to the NewFromSolution() method. Security level 3.

  • NewFromSolution() ” Creates a form from a specified form template ( .xsn file). The method's argument is a URL. Security level 3.

  • Open () ” Opens a specified form. The method's first argument is a URL that specifies the location of the form. Security level 3.

  • Quit() ” Quits the InfoPath application. The method does not take an argument. Security level 3.

  • RegisterSolution() ” Registers a form template as a fully trusted form template. The method takes two arguments. The first argument is required, and is the URL of the form template. The second argument is optional, and may take the value overwrite (the default) or new-only .

  • UnregisterSolution() ” Uninstalls a fully trusted form template. The method has a single argument: a URL that specifies where the form template was installed.

ExternalApplication Object Properties

The ExternalApplication object has no properties.

 <  Day Day Up  >  


Microsoft Office InfoPath 2003 Kick Start
Microsoft Office InfoPath 2003 Kick Start
ISBN: 067232623X
EAN: 2147483647
Year: 2004
Pages: 206

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net