Following details is from http://msdn.microsoft.com/en-us/library/office/aa948065.aspx
About the Microsoft Office InfoPath Primary Interop Assembly. check this link http://msdn.microsoft.com/en-us/library/office/aa943009.aspx
The following procedures describe how to set references to the Microsoft Office InfoPath primary interop and the InfoPath XML interop assemblies in a Visual Studio project.
To set a reference to the Microsoft.Office.Interop.InfoPath primary interop assembly, set a reference to Microsoft InfoPath 3.0 Type Library on the COM tab of the Add Reference dialog box. Even though you set a reference from the COM tab, a reference is established to the Microsoft.Office.Interop.InfoPath.dll primary interop assembly that is installed in the Global Assembly Cache (GAC) by the InfoPath setup program.
Set a reference to the Microsoft.Office.Interop.InfoPath primary interop assembly
- Open a Visual Studio managed code project.
- In Solution Explorer, right-click References, and then click Add Reference.
- On the COM tab, double-click Microsoft InfoPath 3.0 Type Library, and then click OK.
To set a reference to the Microsoft.Office.Interop.InfoPath.Xml interop assembly, browse to the Microsoft.Office.Interop.InfoPath.Xml.dll file that is installed by default in the <drive>:\Program Files\Microsoft Office\OFFICE14 folder. Even though you specify the copy of the assembly in the local file system, this procedure establishes a reference to the Microsoft.Office.Interop.InfoPath.Xml.dll assembly that is installed in the Global Assembly Cache (GAC) by the InfoPath setup program.
Set a reference to the Microsoft.Office.Interop.InfoPath.Xml interop assembly
- Open or create a Visual Studio managed code project, such as a Console Application or Windows Application.
- In Solution Explorer, right-click References, and then click Add Reference.
- On the .NET tab, click Browse, navigate to the <drive>:\Program Files\Microsoft Office\OFFICE14 folder, and then click Microsoft.Office.Interop.InfoPath.Xml.dll.
- Click OK.
No comments:
Post a Comment