XLSReadWriteII 4: Excel 97 file with more than 57344 rows
Posted: Mon Jul 28, 2008 8:42 am
Dear Axolot-Team,
this problem I've always posted as a mail, but didn't receive an answer. Because it's very important for me to solve the problem I decided to post the problem also here:
while using version 4 of XLSReadWriteII I'm encountering a problem when saving a file with 57.345 rows or more.
I've simplified the problem by writing only a counter to the file instead of real data.
The sample file was created by Creating an XLSReadWriteII4, appending a work sheet und than writing a counter in a simple 'for'-construction:
ActiveSheet.AsString [0, 0] := 'Counter';
for i := 1 to Count do begin
ActiveSheet.AsString [0, i] := IntToStr (i)
end;
ActiveSheet is a simple synonym for the appended worksheet. After this the data are saved with Filename property and Write method of XLSReadWriteII class.
If I try to open this file in Excel2000 there's no problem. Trying to open the file with Excel2003 results in an error message:
"File error: there may be data loss" (the original german message is: "Dateifehler: Daten sind möglicherweise verloren gegangen").
It seems that there are no data loss indeed but the error message shows that there's something wrong with the file.
The problem also occurs if I load a file created by Excel or by DTS of MS SQL Server 2000 und saving the file with XLSReadWrite - so it seems to be a problem in the Write-method.
The sample file for this problem was enclosed as attachement to the mail I sent Monday 07/21/2008 12:18
Many thanks and best regards
this problem I've always posted as a mail, but didn't receive an answer. Because it's very important for me to solve the problem I decided to post the problem also here:
while using version 4 of XLSReadWriteII I'm encountering a problem when saving a file with 57.345 rows or more.
I've simplified the problem by writing only a counter to the file instead of real data.
The sample file was created by Creating an XLSReadWriteII4, appending a work sheet und than writing a counter in a simple 'for'-construction:
ActiveSheet.AsString [0, 0] := 'Counter';
for i := 1 to Count do begin
ActiveSheet.AsString [0, i] := IntToStr (i)
end;
ActiveSheet is a simple synonym for the appended worksheet. After this the data are saved with Filename property and Write method of XLSReadWriteII class.
If I try to open this file in Excel2000 there's no problem. Trying to open the file with Excel2003 results in an error message:
"File error: there may be data loss" (the original german message is: "Dateifehler: Daten sind möglicherweise verloren gegangen").
It seems that there are no data loss indeed but the error message shows that there's something wrong with the file.
The problem also occurs if I load a file created by Excel or by DTS of MS SQL Server 2000 und saving the file with XLSReadWrite - so it seems to be a problem in the Write-method.
The sample file for this problem was enclosed as attachement to the mail I sent Monday 07/21/2008 12:18
Many thanks and best regards