Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT Excel
Data when I delete data with delete key
BM Kim
2007-09-30 20:04:26.0
Dear HXTT.

My excel has one table and it contains 10 rows in it.
My simple program reads 10 rows so well.

Next I delete 5 rows - selecting 5 rows with mouse-dragging and press delete key.
after this, my program also reads 10 rows - all null for lat 5 rows.

It works well when I delete 5 rows with selecting row - right mouse click - delete menu.

How can I get just 5 rows with my first deletion? or
How can I catch which row will be read in EXCEL with my first deletion?

Regards,
Re:Data when I delete data with delete key
HXTT Support
2007-09-30 21:13:56.0
>How can I get just 5 rows with my first deletion? or
>How can I catch which row will be read in EXCEL with my first deletion?
HXTT Excel has its own database engine for MS Excel. You can't expect it can do concurrent update with MS Excel. You can try delayedClose=-1 connection property to let it detect that modification ASAP.
Re:Re:Data when I delete data with delete key
BM Kim
2007-09-30 21:49:05.0
Thank you for your quick response.

After deleting all rows but column row with my second way, I meet an error like below :
java.sql.SQLException: java.lang.NullPointerException
at com.hxtt.sql.excel.ca.a(Unknown Source)
at com.hxtt.sql.excel.a9.a(Unknown Source)
at com.hxtt.sql.excel.a9.a(Unknown Source)
at com.hxtt.sql.ce.a(Unknown Source)
at com.hxtt.sql.aw.F(Unknown Source)
at com.hxtt.sql.dc.a(Unknown Source)
at com.hxtt.sql.dc.a(Unknown Source)
at com.hxtt.sql.bm.a(Unknown Source)
at com.hxtt.sql.bm.a(Unknown Source)
at com.hxtt.sql.ag.a(Unknown Source)
at com.hxtt.sql.ag.a(Unknown Source)
at com.hxtt.sql.ag.executeQuery(Unknown Source)
at HXTTTest.main(HXTTTest.java:26)

I downloaded my jar in 9-18, 2007 after purchaing it.

please give me the solution about that.

Regards,
Re:Re:Data when I delete data with delete key
BM Kim
2007-09-30 22:07:21.0
Dear HXTT.

About first issue, the main is not "concurrent" but "all empty row".
concurrent is not important because I can save excel and re-read.

At glancing, there're only 5 rows but system reads 10 rows.
So my question is "Can I exclude all-empty-row?"

I'm looking forward to your answer.

Regards,
Re:Re:Re:Re:Data when I delete data with delete key
HXTT Support
2007-09-30 23:26:43.0
>After deleting all rows but column row with my second way, I meet an error like
> below :
>java.sql.SQLException: java.lang.NullPointerException
Do you mean that HXTT Excel failed to read an Excel file after you deleted all rows except for the frist row by MS Excel? You can send webmaster@hxtt.com the failed xls.

>About first issue, the main is not "concurrent" but "all empty row".
>At glancing, there're only 5 rows but system reads 10 rows.
>So my question is "Can I exclude all-empty-row?"
I see now. It's normal. One operation clears rows, and the other operation deletes rows. You can try:
select * from tt2.sheet2 WHERE DELETED();
or
select * from tt2.sheet2 WHERE column1=null;

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap