I open the worksheet model with TXLSSpreadSheet component and then copy them hidden column for each day that I am calculating the cost.
In version 4 when I copied the formula to another column, the references of which were updated according to the new location. Ex: SUM (F1: F10) when copied to the "H" column was as SUM (H1: H10). This was correct.
In version 5 when I copy the formula SUM (F1: F10) to the "H" column, their references are not updated, the formula remains SUM (F1: F10). Why?
I've tried both methods of copy below, works in version 4, but version 5 does not work. Is it a bug?
Method 1:
Code: Select all
Plan3.XLS.CopyColumns(0, rec.TopLeft.X, rec.TopLeft.X, 0, point.X)
Code: Select all
Plan3.XLS.Sheets[0].CopyCells(rec.TopLeft.X, 0, rec.TopLeft.X, rec.BottomRight.Y, point.X, 0, CopyAllCells + [ccoAdjustCells, ccoForceAdjust]);
XLSSpreadSheet V2.00.00
PS:
Attached is a spreadsheet model that I use as a base. Hidden columns "F" and "G" are copied to the daily columns. Note that the formulas in columns "H: AF" are identical formulas of the "F" column, the references were not updated.
(https://www.mediafire.com/?yf8d5npep3d1vkd)