Error in TXLSExport5.WriteData method

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
Heiner
Posts: 2
Joined: Fri Jul 24, 2015 2:34 pm

Error in TXLSExport5.WriteData method

Post by Heiner »

Hello

there is a typical copy-paste in your Source code!
In the TXLSExport5.WriteData routine (line 3005-306 // Using Delpohi 2007) is the R2 integer (for the maximal row calc) wrong calculated:

your wrong code:
C2 := Max(C2,IC2);
R2 := Max(C2,IR2);

correct code:
C2 := Max(C2,IC2);
R2 := Max(R2,IR2);

I've this is not corrected you can't export more than 20 rows (eg. to an HTML file!)

*** CurrentVersionNumber = '5.20.53'; ***

greetings
H.Breuer
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Error in TXLSExport5.WriteData method

Post by larsa »

Hello

This is fixed in update 5.20.54
Lars Arvidsson, Axolot Data
Post Reply