This documentation is archived and is not being maintained.

IFormTemplateConverter2.Export Method

Office 2007
Converts an InfoPath form template to a provider-defined format.

Version Information
 Version Added:  InfoPath 2007


expression.Export(srcPath, destPath, vfShowUI, pMessage)

expression   An expression that returns a IFormTemplateConverter2 object.


NameRequired/OptionalData TypeDescription
srcPathRequiredStringFull path to the manifest.xsf file for the form template to be exported.
destPathRequiredStringFull path to the file that will be created by the exporter during the export operation.
vfShowUIRequiredBooleanIf set to False, the converter will not show any UI other than the options dialog if requested.
pMessageRequiredStringContains conversion details and is displayed in the final dialog. Any text over 4096 characters will be truncated.

Return Value


InfoPath extracts the form template that is currently open in design mode to the temporary folder specified by the

srcPath parameter and passes the path to the manifest.xsf file in this folder. All files that were present in the .xsn file for the form template will be found in the same folder as the manifest.xsf file.

If the converter does not support exporting, this method should return E_NOTIMPL.

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.