Problem creating Excel sheets

A

abhishek jamloki

I am trying to insert data in an excel sheet using odbc. I use
PreparedStatement for this. My java code does not throw any exceptions
and indicates that the rows have been inserted but when I open the
excel file I do not find any data there. If I open the excel file
using MS Excel and then run my Java code the rows get inserted
properly the way I want them. Can some one please help me out?
 
A

Ajay

 I am trying to insert data in an excel sheet using odbc. I use
PreparedStatement for this. My java code does not throw any exceptions
and indicates that the rows have been inserted but when I open the
excel file I do not find any data there. If I open the excel file
using MS Excel and then run my Java code the rows get inserted
properly the way I want them. Can some one please help me out?

Don't used odbc.
Instead, use POI tools: http://poi.apache.org/

Ajay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top