Share via


InfoPathEditorWithAppDomain.Load method

Loads a form file (.xml) into the control represented by the InfoPathEditorWithAppDomain object.

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

Syntax

'Declaration
Sub Load ( _
    bstrURL As String, _
    punkAppDomain As Object, _
    bstrInputParameters As String _
)
'Usage
Dim instance As InfoPathEditorWithAppDomain
Dim bstrURL As String
Dim punkAppDomain As Object
Dim bstrInputParameters As String

instance.Load(bstrURL, punkAppDomain, _
    bstrInputParameters)
void Load(
    string bstrURL,
    Object punkAppDomain,
    string bstrInputParameters
)

Parameters

  • bstrURL
    Type: System.String

    The path or URL to the form file (.xml).

  • punkAppDomain
    Type: System.Object

    An AppDomain object that represents the application domain in which the application hosting the control is executing.

  • bstrInputParameters
    Type: System.String

    One or more name/value pairs separated by the ampersand (&) character.

Remarks

The Load(String, Object, String) method does not allow you to specify a form template file (.xsn). The form file must contain processing instructions (href and name attributes) that reference a valid form template file for the Load(String, Object, String) method to succeed. If this is not possible, the NewFromSolution(String, Object, String) method can be used if you have a .xsn file and a suitably structured XML file, but the XML file does not have processing instruction references that specify the .xsn file. Or you can use the LoadFromStream(Object, Object, String) method to load XML from a System.IO.Stream object.

To use the input parameters passed to the bstrInputParameters parameter, the form specified in the bstrURL parameter must contain a OnLoad event handler that uses the InputParameters property of the LoadingEventArgs class to retrieve the input parameter values, and then do something with those values.

See also

Reference

InfoPathEditorWithAppDomain interface

InfoPathEditorWithAppDomain members

Microsoft.Office.Interop.InfoPath namespace