IFormTemplateConverter.Convert Method

InfoPath Developer Reference

Begins the conversion of a file to an InfoPath form template.

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.Convert(srcPath, destPath, pMessage)

expression   An expression that returns an IFormTemplateConverter object.

Parameters

Name Required/Optional Data Type Description
srcPath Required String Specifies the file to import. Entered by the user in the Import Wizard.
destPath Required String Specifies a temporary folder created for use during the import operation. The custom importer places the form files in this folder during the conversion process.
pMessage Required String If the import succeeds, then pMessage will contain information about the conversion for which the user might need to take action. This information is displayed in the last step of the Import Wizard.

Return Value
[HRESULT]

Remarks

For more information on creating a backward-compatible form template converter, see the Build a Custom Importer topic in the InfoPath 2003 SDK.

The IFormTemplateConverter2 interface, new to Microsoft Office InfoPath 2007, provides the same converter options as the IFormTemplateConverter interface plus support for exporting an InfoPath form to an arbitrary format. For more information about implementing the IFormTemplateConverter2 interface, see the InfoPath Developer Portal on the Microsoft Office Developer Center.

This interface, object, member or enumeration is provided by the InfoPath design environment. A reference must be set to the Microsoft Office InfoPath Designer 2.0 Type Library, located at C:\Program Files\Microsoft Office\Office12\IPDESIGN.DLL.

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