Add reference to InfoPath in VS 2005 (c#) not visible

E

Emil

Hi,
I want to email a InfoPaht form from an existing Visual Studio project and I
want to add a reference to InfoPath, but
the Microsoft.Office.InfoPath is not visible in the list of COM objects.
I have both VSTA and VSTO intalled on my machine.

If I start a VSTO project from scratch it will add a reference to
Microsoft.Office.InfoPath, pointing to :
C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Office.InfoPath\12.0.0.0__71e9bce111e9429c\Microsoft.Office.InfoPath.dll

I cannot browse to this location if I try to add a reference by browsing the
file system.

Shouldn't a reference to Microsoft.Office.Interop.Infopath be available?

I'm using XP Professional with Infopath 2007 and VS 2005.
 
S

S.Y.M. Wong-A-Ton

You cannot reference an assembly directly from the GAC, but you can copy that
assembly, put it elsewhere and reference it from there. Another option is to
browse to the assembly from within Visual Studio to add a reference to it.
The Microsoft.Office.InfoPath and Microsoft.Office.Interop.InfoPath
assemblies are located in C:\Program Files\Microsoft Office\Office12.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top