0

i'm making a project in visual studio and there are references in my project such as Microsoft.Office.Interop.Excel .. etc

I set CopyLocal of Microsoft.Office.Interop.Excel to False

and the directory of Microsoft.Office.Interop.Excel is C:\Program Files\Microsoft Visual Studio 9.0\Visual Studio Tools for Office\PIA\Office12\Microsoft.Office.Interop.Excel.dll

after i build my application then i install it on another computer,

you know, in another computer there are no files like Microsoft.Office.Interop.Excel.dll or the like in "C:\Program Files\Microsoft Visual Studio 9.0\" to be used for my application. but strangely, my application is work fine.

Why Did This Happen?

4

1 回答 1

3

Primary Office Assemblies which includes Microsoft.Office.Interop.Excel are installed with Office, therefore you can use it without Visual Studio.

http://msdn.microsoft.com/en-us/library/kh3965hw(v=vs.100).aspx

于 2012-12-27T14:44:17.443 回答