Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maximum number of columns?

Status
Not open for further replies.

sjakiePP

Programmer
Apr 6, 2004
104
0
0
NL
Dear all,

Is there a maximum number of columns I can retrieve from an excel sheet? I am using Selenium with Excel through an ODBC connection. When I get to columnnr 256, my program just stops. No warning or exception is given.

I'm using jdk1.7.0_03 with Excel driver version 12.

If there is a limit, what are good alternatives? Something like Apache POI?

Thanks in advance.

With kind regards,
Sjakie

---------------------------------------------
Yes, the world is full of strange people.
 
Apache POI is indeed a good alternative for reading Excel, and I'd expect it to be much faster than JDBC too.

I'd expect the 256 column limit be related to the JDBC driver you are using.
 
Thanks for your reply.

POI is faster indeed. Now I have converted my script to use POI and it works very fast. Also it showed I had some errors in my code, which are now fixed...

---------------------------------------------
Yes, the world is full of strange people.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top