Share via


InfoPathEditor.Load Method

InfoPath Developer Reference

Loads a form file (.xml) into the InfoPathEditor object.

Version Information
 Version Added:  InfoPath 2007

Syntax

expression.Load(bstrURL)

expression   An expression that returns an InfoPathEditor object.

Parameters

Name Required/Optional Data Type Description
bstrURL Required String The path or URL to the form file (.xml).

Return Value
[HRESULT]

Remarks

The Load method does not allow you to specify a form template file (.xsn). The form file must reference a valid form template file for the Load method to succeed.

The Load method of the InfoPathEditor object is not intended to be used in custom form code. It is available for use when the InfoPathEditor object is hosted in a custom COM-based application. For more information, see Hosting InfoPath as an XML Editor in Another Application and What's New for InfoPath Developers.

This object or member is used for extending the InfoPath application and is not intended to be used directly from your form code.

See Also