Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2008

Tip: Looking for answers? Try searching our database.

I need help using xlsjdbc

Thread view: 
sahm - 06 Jan 2008 11:22 GMT
Hi evey one
I'm using xlsjdbc to read xls file but it would not work whit me and
no error massage is showing can any one help me please
this is my code

/////////////////////////////////////
try
       {
           Class.forName("org.aarboard.jdbc.xls.XlsDriver");
           Connection con =
DriverManager.getConnection("jdbc:aarboard:xls:E://Data");
           Statement stat = con.createStatement();
           ResultSet result = stat.executeQuery("select * from
Adresse");
           int i = 0;
           while (result.next())
           {
               jTable1.setValueAt(result.getString("First Name"), i,
0);
               jTable1.setValueAt(result.getString("Secand Name"), i,
1);
               jTable1.setValueAt(result.getString("Famliy Name"), i,
2);

               i++;
           }

           result.close();
           stat.close();
           con.close();
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
please show me where is my error

Best
Salim
Andrew Thompson - 06 Jan 2008 20:17 GMT
> Hi evey one

Please refrain from multi-posting, in future.

(N.B. X.-post to c.l.j.p./h., w/ f-u to c.l.j.h. only)

--
Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.