Andrea Nenni
2004-01-20 10:58:58 UTC
Hi,
I just generated two Excel files. The first one is a simple one with
one column and four rows.
For the second file, I added two lines of code to add a row and remove
it again immediately:
HSSFSheet sheet;
//...
HSSFRow row = sheet.createRow(4);
sheet.removeRow(row);
The resulting files differ (Unix "diff" says "binary files differ").
Why? Is that a bug?
In case you wonder why I'm doing this nonsense... I'm trying to import
the generated Excel files into Microsoft Project (using a self-defined
import/export map). My problem is that files with an even number of
rows won't be imported correctly. The last row is missing in MS Project.
After opening and saving the file in MS Excel, it works fine. (This
works with OpenOffice, too). I'm not sure if this is a POI problem or
an MS Project problem.
Thanks.
Andrea
I just generated two Excel files. The first one is a simple one with
one column and four rows.
For the second file, I added two lines of code to add a row and remove
it again immediately:
HSSFSheet sheet;
//...
HSSFRow row = sheet.createRow(4);
sheet.removeRow(row);
The resulting files differ (Unix "diff" says "binary files differ").
Why? Is that a bug?
In case you wonder why I'm doing this nonsense... I'm trying to import
the generated Excel files into Microsoft Project (using a self-defined
import/export map). My problem is that files with an even number of
rows won't be imported correctly. The last row is missing in MS Project.
After opening and saving the file in MS Excel, it works fine. (This
works with OpenOffice, too). I'm not sure if this is a POI problem or
an MS Project problem.
Thanks.
Andrea