ExternalApplication Interface

Definition

Represents the Microsoft InfoPath application.

public interface class ExternalApplication : Microsoft::Office::Interop::InfoPath::SemiTrust::_ExternalApplication2
[System.Runtime.InteropServices.Guid("096cd772-0786-11d1-95fa-0080c78ee3bb")]
public interface ExternalApplication : Microsoft.Office.Interop.InfoPath.SemiTrust._ExternalApplication2
type ExternalApplication = interface
    interface _ExternalApplication2
    interface _ExternalApplication
Public Interface ExternalApplication
Implements _ExternalApplication2
Attributes
Implements

Examples

In the following example, the ExternalApplication object is created and used to open a form:

<span class="label">ExternalApplication</span> infoPath = new ExternalApplicationClass();
// Open an InfoPath form.
infoPath.Open(@"C:\My Forms\Form1.xml", 1);

Note: The above example assumes that the Microsoft.Office.Interop.InfoPath namespace is being used and that the Microsoft InfoPath 1.0 Type Library is referenced.

Remarks

This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. For information about the COM interface, including a link to descriptions of its members, see_ExternalApplication.

The ExternalApplication object is a deprecated type that should no longer be used for automation. The Application object and the XDocument object contain the properties and methods needed for external automation of the InfoPath application.

For backward compatibility, the ExternalApplication object can be used to perform a limited set of InfoPath operations such as creating, opening, or closing a form; registering or un-registering a form template; or simply quitting the application.

Methods

CacheSolution(String)

Examines the form template in the cache and, if necessary, updates it from the published location of the form template.

(Inherited from _ExternalApplication2)
Close(String)

Closes the specified form.

(Inherited from _ExternalApplication2)
New(String, Int32)

Creates a new form based on a specified form.

(Inherited from _ExternalApplication2)
NewFromSolution(String)

Creates a new form based on the specified form template.

(Inherited from _ExternalApplication2)
NewFromSolutionWithInputParameters(String, String)

Creates a new form using the specified form template with the specified form template and input parameters.

(Inherited from _ExternalApplication2)
Open(String, Int32)

Opens the specified form.

(Inherited from _ExternalApplication2)
Quit()

Quits the application.

(Inherited from _ExternalApplication2)
RegisterSolution(String, String)

Installs the specified form template.

(Inherited from _ExternalApplication2)
UnregisterSolution(String)

Uninstalls the specified form template.

(Inherited from _ExternalApplication2)

Applies to