Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.0.052
  HXTT Cobol 4.0.052
  HXTT DBF 7.0.052
  HXTT Excel 6.0.053
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Paradox 7.0.052
  HXTT PDF 1.1.052
  HXTT Text(CSV) 7.0.052
  HXTT Word 1.0.050
  HXTT XML 3.0.052
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 Xi'an 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 © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap