The following procedure describes how to migrate a form template project that was created in Microsoft Office InfoPath 2007 using the Microsoft Visual Studio Tools for Applications (VSTA) development environment to Visual Studio 2005 with Microsoft Visual Studio 2005 Tools for the 2007 Microsoft Office System or Visual Studio 2008 with Visual Studio Tools for Office.
Migrate a VSTA project to Visual Studio
-
In My Computer, locate the form template project that has code added using the Microsoft Visual Studio Tools for Applications (VSTA) development environment in Office InfoPath 2007. By default, it will be located in <drive>:\Documents and Settings\username\My Documents\InfoPath Projects\projectname\.
-
Copy the projectname folder to a new location, such as <drive>:\Documents and Settings\username\My Documents\Visual Studio 2005\Projects.
-
Start Visual Studio and open projectname.sln from the location where you copied the project folder in step 2.
-
In Solution Explorer, right-click the project folder, point to Add, and then click New Folder.
-
Name the new folder InfoPath Form Template. The name of the folder must be exact to work correctly.
-
Close Visual Studio.
-
Start InfoPath and open the original form template for the project in Design mode.
-
On the File menu, click Save as Source Files, and then save the files to the InfoPath Form Template folder. This folder will be located inside the folder where you copied the project in step 2.
-
Close InfoPath.
-
Start Visual Studio, and the open the project you opened in step 3.
-
In Solution Explorer, right-click the InfoPath Form Template folder, point to Add, click Existing Item, change Files of type to All Files (*.*), and then select manifest.xsf.
-
In Solution Explorer, double-click manifest.xsf file to open the form template in Design mode in Visual Studio.