Share via


ExternalApplication interface

Represents the Microsoft InfoPath application.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
<GuidAttribute("096CD772-0786-11D1-95FA-0080C78EE3BB")> _
Public Interface ExternalApplication _
    Inherits _ExternalApplication2
'Usage
Dim instance As ExternalApplication
[GuidAttribute("096CD772-0786-11D1-95FA-0080C78EE3BB")]
public interface ExternalApplication : _ExternalApplication2

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.

Examples

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

ExternalApplication 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 3.0 Type Library is referenced.

See also

Reference

ExternalApplication members

Microsoft.Office.Interop.InfoPath namespace