使用c++库加载Excel (.xls)文件

时间:2023-01-15 11:27:52

I'm looking for a free C++ library that can load .xls files in both Windows and Linux. If I had to make a choice, Linux would be the bare minimum.

我正在寻找一个免费的c++库,可以在Windows和Linux中加载.xls文件。如果我必须做出选择,Linux将是最基本的。

I've tried LibXL, but got this amazing error:

我尝试过LibXL,但是有一个惊人的错误:

"can't read more cells in trial version"

不能在试验版本中读取更多的细胞

So now I'm on the hunt for a free version :), unfortunately xlsLib doesn't provide the ability to load existing .xls files.

因此,现在我正在寻找一个免费版本:),不幸的是,xlsLib无法提供加载现有的.xls文件的能力。

Thanks

谢谢

3 个解决方案

#1


14  

We have had success with: ExcelFormat

我们已经在:ExcelFormat取得了成功

#2


2  

This looks promising for .xslx files: https://github.com/tfussell/xlnt

对于.xslx文件:https://github.com/tfussell/xlnt来说,这看起来很有希望

#3


0  

Please take a look at XLSX I/O, which is a C library released under MIT license for both reading and writing .xlsx files from C/C++.

请看XLSX I/O,这是一个C库,根据麻省理工学院的许可,可以从C/ c++中读写. XLSX文件。

It's cross platform and specifically designed to allow streaming a lot of data to and from .xslx files with low memory footprint.

它是跨平台的,特别设计的目的是允许大量数据流到.xslx文件并以低内存占用的方式进行传输。

Only depends on expat and libzip. Tested on Windows (MinGW), Linux and OS X.

只依赖于expat和libzip。在Windows (MinGW)、Linux和OS X上测试。

#1


14  

We have had success with: ExcelFormat

我们已经在:ExcelFormat取得了成功

#2


2  

This looks promising for .xslx files: https://github.com/tfussell/xlnt

对于.xslx文件:https://github.com/tfussell/xlnt来说,这看起来很有希望

#3


0  

Please take a look at XLSX I/O, which is a C library released under MIT license for both reading and writing .xlsx files from C/C++.

请看XLSX I/O,这是一个C库,根据麻省理工学院的许可,可以从C/ c++中读写. XLSX文件。

It's cross platform and specifically designed to allow streaming a lot of data to and from .xslx files with low memory footprint.

它是跨平台的,特别设计的目的是允许大量数据流到.xslx文件并以低内存占用的方式进行传输。

Only depends on expat and libzip. Tested on Windows (MinGW), Linux and OS X.

只依赖于expat和libzip。在Windows (MinGW)、Linux和OS X上测试。