C# Excel 14取代Excel 15(2013)发布
我做了一个简单的C项目,并参考了Excel 15C# Excel 14取代Excel 15(2013)发布,c#,excel,office-interop,C#,Excel,Office Interop,我做了一个简单的C项目,并参考了Excel 15 <Reference Include="Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL"> <EmbedInteropTypes>False</EmbedInteropTypes> &l
<Reference Include="Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
我在这里遗漏了什么吗?计算机上安装了哪些版本的Excel?2010版和2013版都是最好的,我可以说这与此无关?哦,全球状态和注册表的无尽乐趣。20年后,它永远不会变老!在一台机器上安装两个版本的Office将使保修无效。顺便说一句,安装程序强烈警告不要这样做。只能有一个是自动的。
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
var a = new Microsoft.Office.Interop.Excel.Application();
var v = a.Version; //14 !!
System.Console.ReadLine();
}
}
}