Share via


XDocuments3.NewFromSolution method (Object)

Creates a new Microsoft InfoPath form based on the specified form template.

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

Syntax

'Declaration
Function NewFromSolution ( _
    varURI As Object _
) As XDocument
'Usage
Dim instance As XDocuments3
Dim varURI As Object
Dim returnValue As XDocument

returnValue = instance.NewFromSolution(varURI)
XDocument NewFromSolution(
    Object varURI
)

Parameters

  • varURI
    Type: System.Object

    Specifies the Uniform Resource Identifier (URI) of a form.

Return value

Type: Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument
An XDocument that represents the new form.

Implements

XDocuments2.NewFromSolution(Object)
XDocuments.NewFromSolution(Object)

Remarks

The NewFromSolution method can only be used to create a new form based on an existing form template; it cannot be used to create a new form based on a form. To create a form from an existing form, use the New method.

When you use the NewFromSolution method, the new form opens in InfoPath and is ready to be filled out.

Important

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

See also

Reference

XDocuments3 interface

XDocuments3 members

NewFromSolution overload

Microsoft.Office.Interop.InfoPath.SemiTrust namespace