[英]Microsoft.Office.Interop.Excel COM Dll usage
To use "Microsoft.Office.Interop.Excel" COM dll in the .net project, which is the better approach. 要在.net项目中使用“ Microsoft.Office.Interop.Excel” COM dll,这是更好的方法。
Adding to what @Jaya wrote, if you are targeting .NET 4.0 or later you can also select the referenced dll and set "Embed Interop Types" to true. 除了@Jaya编写的内容外,如果您的目标是.NET 4.0或更高版本,则还可以选择引用的dll并将“嵌入互操作类型”设置为true。 This option (called NOPIA) will eliminate the need to deploy the Excel interop dll with your program. 此选项(称为NOPIA)将不需要在程序中部署Excel interop dll。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.