Edit

Share via


XDocuments3.NewFromSolution(Object) Method

Definition

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

public:
 Microsoft::Office::Interop::InfoPath::SemiTrust::XDocument ^ NewFromSolution(System::Object ^ varURI);
public Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument NewFromSolution (object varURI);
abstract member NewFromSolution : obj -> Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument
Public Function NewFromSolution (varURI As Object) As XDocument

Parameters

varURI
Object

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

Returns

An XDocument that represents the new form.

Implements

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(Object, Int32) 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.

Applies to