简体   繁体   中英

Load Excel data into Linux / wxWidgets C++ application?

I'm using wxWidgets to write cross-plafrom applications. In one of applications I need to be able to load data from Microsoft Excel (.xls) files, but I need this to work on Linux as well, so I assume I cannot use OLE or whatever technology is available on Windows.

I see that there are many open source programs that can read excel files (OpenOffice, KOffice, etc.), so I wonder if there is some library that I could use?

Excel files it needs to support are very simple, straight tabular data. I don't need to extract any formatting except column/row position and the data itself.

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

I came across other libraries (chicago on sf.net, xlsLib) but they seem to be outdated.

jrh

也许http://www.libxl.com/可以帮忙吗?

I can say that I know of a wxWidgets application that reads Excel .xls and .xlsx files on any platform. For the .xlsx files we used an XML parser and zip stream reader and grab the data we need, pretty easy to get going. For the .xls files we used: ExcelFormat , which works well and we found the author to be very generous with his support.

Maybe just some encouragement to give it a go? It was a couple of days work to get working.

I think that it is not something easy to do. xls files are quite complex and it is a proprietary format.

Maybe this is a stupid idea but why don't you upload and access your doc with Google docs. There are some apis to access your doc.

2 potential problems: - Your app needs internet access - Currently there is no C++ api.

But there are api for several languages including python see http://code.google.com/intl/fr/apis/gdata/articles/python_client_lib.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM