如何通过 C++ 程序从 Microsoft Excel 文件中读取数据
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20922283/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How To Read data from Microsoft Excel File by C++ Program
提问by Abdel-rahman El-Carpenter
now i have some massive data on Excel Sheet, and i need by c++ program to transform this data into text file, to use it later in another thing.
现在我在 Excel 工作表上有一些海量数据,我需要通过 C++ 程序将这些数据转换为文本文件,以便稍后在另一件事中使用它。
how can i accesses this Excel file, to get data from first attribute and put delimiter and so on??
我如何访问这个 Excel 文件,从第一个属性获取数据并放置分隔符等等?
采纳答案by Karthik Kalyanasundaram
I have personally used Microsoft Excel Automation to read from Excel in the applications I develop. Please check the link http://www.codeproject.com/Articles/15837/Accessing-Excel-Spreadsheets-via-Cfor more information on Excel Automation.
我个人使用 Microsoft Excel 自动化在我开发的应用程序中读取 Excel。有关 Excel 自动化的更多信息,请查看链接http://www.codeproject.com/Articles/15837/Accessing-Excel-Spreadsheets-via-C。
But it seems there are other options as discussed in the following links http://www.codeproject.com/Articles/42504/ExcelFormat-LibraryRead cells from Excel in C++?
但似乎还有以下链接中讨论的其他选项 http://www.codeproject.com/Articles/42504/ExcelFormat-Library从 C++ 中的 Excel 读取单元格?