Open and read Excel from a Linux based C program?

2020-06-17 05:40发布

I am trying to locate a set of source code that would allow me to open and read the contents of an Excel file on Linux from within a C program.

I dont really want to link it to OpenOffice SDK if I can find something that just does these two things.

carl

标签: c linux excel
7条回答
Animai°情兽
2楼-- · 2020-06-17 06:26

Check out the answers to What is the best C library that can access Excel files?

Possible things for you to look at:

Though I think both are write-only, which is perhaps not what you need.

查看更多
The star\"
3楼-- · 2020-06-17 06:27

If following suites you, then You may take read routines from

Sourceforge

and write routines from

What is a simple and reliable C library for working with Excel files?

查看更多
做自己的国王
4楼-- · 2020-06-17 06:29

why don't you just use Google Docs? With Gears it has offline support and you can edit files too, just a thought - http://docs.google.com

查看更多
神经病院院长
5楼-- · 2020-06-17 06:32

As far as I know there is no library that does this. The common method is always to save the file as CVS in Excel, although then markup etc. is lost.

You could try to use the Excel plugin of Gnumeric:

http://svn.gnome.org/viewvc/gnumeric/trunk/plugins/excel/

It works very well (inside gnumeric).

查看更多
兄弟一词,经得起流年.
6楼-- · 2020-06-17 06:35

Grab the xls reading code from Open Office.

查看更多
萌系小妹纸
7楼-- · 2020-06-17 06:43

You can use xlhtml to convert the Excel files into HTML, and then use your favorite HTML parser to extract the cell data.

查看更多
登录 后发表回答