Because now it seems that when reading an excel file which contains merged cells, it associates the read data on the first cell, and the rest of the merged cells are considered to be empty.
For example here is a small code where I read the contents of an excel file and populate a Grid component with the cells value:
Code: Select all
for row:=0 to MAX_ROWS do
begin
Grid.AddRow();
for col:=0 to MAX_COLUMNS do
begin
data_str:=XLS.Sheet[SheetIndex].AsString[col,row];
Grid.Cell[col,row].AsString:=data_str;
end;
end;
Any ideas how to solve this?
[/img]