S
sahm
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
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