How to: Create a Form Template Using the InfoPath 2003 Object Model
Last modified: June 28, 2011
Applies to: InfoPath 2013 | InfoPath Forms Services | Office 2013 | SharePoint Server 2013
The procedures in this topic describe how to create a form template that works with the InfoPath 2003-compatible object model.
In addition to the procedures below, you must also click the File tab, click Save As, and then select InfoPath 2003 Form Template in the Save as type box to save the form template to the InfoPath 2003-compatible file format. Also, to open InfoPath 2003-compatible form templates created with InfoPath, all InfoPath 2003 users must have the .NET Framework 2.0 or later installed on their computers.
To create an InfoPath 2003-compatible form template in InfoPath with Visual Studio Tools for Applications
Start the InfoPath Designer.
Click the File tab, and then click Form Options.
In the Compatibility category, select InfoPath 2003 Editor Form.
In the Programming category, select either C# (InfoPath 2003 Compatible) or Visual Basic (InfoPath 2003 Compatible) from the Form template code language drop-down list.
Design your form template, and then add event handlers in Visual Studio 2012, as described in How to: Add an Event Handler Using the InfoPath 2003 Object Model.