Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v6.0
  HXTT Cobol v3.0
  HXTT DBF v6.0
  HXTT Excel v5.0
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Paradox v6.0
  HXTT Text(CSV) v6.0
  HXTT XML v2.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Beijing City (abbr, HXTT)

HXTT Excel
Problem with current driver (2015-10-21 07:06)
Chi Thien Phan
2015-10-27 00:04:28.0
hi,

the driver Excel_JDBC30.jar 4.2.044 on March 02, 2015 gives correct data from sql statement. But the current driver on 2015-10-21 07:06 gives empty data from the same sql statement. Pls fix it! Thx

PS: the excel file Demodaten_Doku_GanttBean.xlsx will be sent to your mail.

Java-Example-Code:
--------------------------------------

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

public class HTXX_Excel {
public static void main(String[] args) {
try {
Class.forName("com.hxtt.sql.excel.ExcelDriver");
Connection conn = DriverManager.getConnection("jdbc:excel:/Demodaten_Doku_GanttBean.xlsx?maxScanRows=0&caseInsentive=true&delayedClose=0");

String query = "select Nachfolger, Relationstyp, Vorg��nger from Relation where Nachfolger=399649806 or Vorg��nger=399649806 or Nachfolger=399649805 or Vorg��nger=399649805 or Nachfolger=399649807 or Vorg��nger=399649807";
Statement stmt = conn.createStatement();
ResultSet resultSet = stmt.executeQuery(query);
resultSet.getMetaData();

while (resultSet.next()) {
System.out.println("-------------------------------------");
for(int i = 1; i < 2; i++){
System.out.println(resultSet.getObject(i));
}
}
resultSet.close();
stmt.close();
conn.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}
--------------------------------------
Re:Problem with current driver (2015-10-21 07:06)
HXTT Support
2015-10-28 01:17:05.0
Supported. Please downlosd the latest package.
Re:Re:Problem with current driver (2015-10-21 07:06)
Chi Thien Phan
2015-10-28 23:46:50.0
thx, it works fine now!

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 1999-2017 Heng Xing Tian Tai Lab of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap