如何使用C ++从vb2010中的excel文件中读取数据 [英] How to read data from excel file in vb2010 using C++
本文介绍了如何使用C ++从vb2010中的excel文件中读取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要代码,因为我建立了连接
I want the code as I have established the connection
推荐答案
我建议使用Microsoft Open XML SDK。
您也可以使用Office互操作,但并不总是建议使用。请参阅Microsoft针对它的警告:
http://support.microsoft.com/default.aspx?scid=kb ; EN-US; q257757#kb2 ,
< a href =http://support.microsoft.com/kb/257757/en-us> http://support.microsoft.com/kb/257757/en-us 。
请参阅本文中引用的答案:如何添加微软来自MS Visual Studio 2010中的添加引用的excel 15.0对象库。
另请参阅此CodeProject文章(关于创建工作表,而不是阅读,但它仍然有帮助):使用Op创建基本的Excel工作簿en XML 。
-SA
I would advise to use Microsoft Open XML SDK.
You could also use Office interop, but it is not always recommended. Please see Microsoft's warning against it:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2,
http://support.microsoft.com/kb/257757/en-us.
Please see my answers referenced in this one: How to add microsoft excel 15.0 object library from Add Reference in MS Visual Studio 2010.
See also this CodeProject article (on creation of a worksheet, not reading, but it is still helpful): Creating basic Excel workbook with Open XML.
—SA
这篇关于如何使用C ++从vb2010中的excel文件中读取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文