InfoPathEditor.Load(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Loads a form file (.xml) into the InfoPathEditor object.
public:
void Load(System::String ^ bstrURL);
public void Load (string bstrURL);
abstract member Load : string -> unit
Public Sub Load (bstrURL As String)
Parameters
- bstrURL
- String
The path or URL to the form file (.xml).
Remarks
The Load 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 method to succeed. If this is not possible, the NewFromSolution(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) method to load XML from a System.IO.Stream object.
For more information about the InfoPathEditor and the FormControl objects , see the MSDN article Hosting the InfoPath Form Editing Environment in a Custom Windows Form ApplicationWhat's New for InfoPath Developers.