This documentation is archived and is not being maintained.

IFormTemplateConverter2.SetLcid Method

Office 2007
Sets the language used by the custom importer.

Version Information
 Version Added:  InfoPath 2007

Syntax

expression.SetLcid(lcid)

expression   An expression that returns an IFormTemplateConverter2 object.

Parameters

NameRequired/OptionalData TypeDescription
lcidRequired[UINT]The current language folder (LCID) used by InfoPath (Office).

Return Value
Nothing

Remarks

This function is called before the conversion takes place. If the importer needs to show an Options dialog or error messages, it can use properly localized resources.

This function will be called as a hint to the converter after Initialize and before Import or Export methods. If the converter still wants to display the information though it does not have proper localized strings, the SetLcid method should return a success code. Otherwise, return a failure code.

Use the IFormTemplateConverter interface for creating backward-compatible form templates. 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.




Show: