I am using flexcel component to generate Excel files from Delphi 2007. Now we switched to the latest version of this component because the old one was not compatible with Excel 2010.
Now I'm facing an issue when we set the format of each cell to a different value. A file is getting generated but with default formatting for all the cells.
Below is a code snippet that demonstrates this behavior:
var
V: TXlsCellValue;
begin
with V do
begin
Value := S; //text
XF := Fmt; //format
IsFormula := false;
end;
FXls.AssignCellDataX(Succ(Row), C, V); // FXls : TXLSFile;
end;