Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.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 Xi'an City (abbr, HXTT)

HXTT Excel
Data when I delete data with delete key
BM Kim
2007-09-30 20:04:26
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
>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
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
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
>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
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap