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,
|
>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.
|
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,
|
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,
|
>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;
|