user3164377
user3164377

Reputation: 59

Reading the cells of an excel sheet in c++

In one of my program, I'm suppose to parse an excel sheet using C++ programming. I'm not suppose to use any third party tool. So, please let me know the code to parse excel sheet and read rows and columns of an selected excel sheet. Thanks in advance.

Upvotes: 1

Views: 2243

Answers (2)

user2380654
user2380654

Reputation:

You can COM to access Excel; for an example, see http://www.wilmott.com/messageview.cfm?catid=10&threadid=26137 (from this question)

However to will probably be easier to use C++/CLI as a wrapper and access COM from .NET.

Upvotes: 1

Itachi
Itachi

Reputation: 1433

In order to read excel files you need some external tool like MS - Office Library. Why don't you export excel to CSV (Comma Seperated File) File->Save as->CSV(Comma Delimited).

Then you can read it just like normal txt file. You can open and edit just like worksheet in MS-Excel.

Upvotes: 2

Related Questions