Excel Reference COM vs .NET
What is the difference between adding a reference to Excel 11.0 from .NET vs COM?
(In C# if that even matters)
-Edit- To clarify, I am talking about the .NET开发者_JS百科 and COM tabs in the Add Reference dialog, thanks for pointing that out Hans Passant.
I assume you mean the .NET and COM tabs in the Add Reference dialog. There is no difference if your machine is setup properly. Which it is if you see Excel listed in the .NET tab. That means you've got the Office PIA installed on your machine, either reference will pick that PIA. That PIA also needs to be installed on the target machine.
精彩评论