I have started using the Excel interop assemblies that are provided by Microsoft for one of my C# applications. Everything is going fine, but there seems to be a lack of strong typing, and honestly it feels like I am writing VBA code. Are there any alternative ways to interact with Excel from C# that would give a better OO experience? I am using VS2010 and .Net 4.0 by the way. 解决方案 Take a look at the EPPlus project over at Codeplex:http://epplus.codeplex.com/I recently used this and it worked very well. (VS2010 and .Net4)EPPlus is a .net library that reads and writes Excel 2007/2010 files using the Open Office Xml format (xlsx).Nice example page: http://epplus.codeplex.com/wikipage?title=ContentSheetExample 这篇关于excel互操作替代的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-22 21:03
查看更多