where is it? Microsoft.Office.Interop.Excel.Application

okay... i've been reading some posts about using excel through C# and they keep on usingMicrosoft.Office.Interop.Excel.Applicationbut i dont have this in my vs.net? is there something wrong with my .net or do i have to download something in order for this to work?
[305 byte] By [nijen04] at [2008-2-14]
# 1
A quote of the Working with the Office XP Primary Interop Assemblies article at MSDN. This is after installing the PIA, you can find in the article how to install the PIA.


Referencing the Office XP PIAs

Unlike standard COM interop assemblies, you cannot browse to a PIA and set a reference to it as you would with other assemblies in the Microsoft Visual Studio .NET integrated development environment (IDE). Instead, you set a reference to an existing COM type library; if a PIA exists in the GAC for that COM type library, the PIA will be silently referenced instead. To demonstrate this behavior, perform the following steps on a computer with Visual Studio .NET and the Microsoft Word 2002 PIA installed:

  1. Start Visual Studio .NET.
  2. On the File menu, point to New, and click Project. The New Project dialog box appears.
  3. Click the Visual Basic Projects folder in the Project Types pane.
  4. Click Console Application in the Templates pane.
  5. Type OfficeXPPIATest in the Name box.
  6. Type or browse to a location in the Location list that is easy for you to remember.
  7. Click OK to create the solution.
  8. On the Project menu, click Add Reference. The Add Reference dialog box appears.
  9. Click the COM tab.
  10. Select the Microsoft Word 10.0 Object Library entry in the list of COM type libraries.
  11. Click Select to select the Word object library entry.
  12. Click OK to add the reference.
  13. In the Solution Explorer window, in the References folder, click the Word reference.
  14. In the Properties window, notice that the Path property is set to a string similar to C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Word\...\Microsoft.Office.Interop.Word.dll. This indicates that the Word PIA is being used instead of forcing Visual Studio .NET to create its own COM interop assembly.
PJ.vandeSande at 2007-9-10 > top of Msdn Tech,Feedback for forums and MSDN websites,Off-Topic Posts (Do Not Post Here)...
# 2
wow thanks. i just got it.. but i seem to have another problem... im running office 2003 in my pc. will the office xp pia work with it? coz when i downloaded the PIA for 2003 and started the installation process it starts loading for a while and then it closes already.
nijen04 at 2007-9-10 > top of Msdn Tech,Feedback for forums and MSDN websites,Off-Topic Posts (Do Not Post Here)...
# 3

Thanks for the information - I was pulling hair on this one.

<FLAME>

MICROSOFT!!!! What the heck were you drinking the night before you hacked this one?

and not only do you create this incredible HACK you proceed to not document it. Either that or you documented it is such an incredibly obscure place that you might as well have just written it on toilet paper and then used it.

</FLAME>

now I feel better - only 3 hours of wasted time ;-<

SPersels at 2007-9-10 > top of Msdn Tech,Feedback for forums and MSDN websites,Off-Topic Posts (Do Not Post Here)...
# 4
SPersels, thanks for participating on the MSDN Forum. I really don't understand your flame? I quoted the documentation from the MSDN Documentation, so what are you missing?
PJ.vandeSande at 2007-9-10 > top of Msdn Tech,Feedback for forums and MSDN websites,Off-Topic Posts (Do Not Post Here)...