Left is the result of XLSSUIT6, right the result of XLSSUIT4. What can I do to fix this issue?
XLSSUIT Version 6:
Code: Select all
try
LDoc := TXLSReadWriteII5.Create(nil);
LDoc.Sheets[0].AsString[3,3] := '';
LFormat := LDoc.CmdFormat;
LFormat.BeginEdit(LDoc[0]);
LFormat.Fill.BackgroundColor.IndexColor := xcBlueGreen;
LFormat.Fill.PatternStyle := efpLightGrid;
LFormat.Apply(3, 3);
LDoc.Filename := 'C:\TEMP\GRID.XLSX';
LDoc.Write;
finally
freeAndNil(LDoc);
end;
Code: Select all
try
LDoc := TXLSReadWriteII4.Create(nil);
LDoc.Sheets[0].AsString[3,3] := '';
LCell := LDoc.Sheets[0].Cell[3,3];
LCell.FillPatternBackColor := xcBlueGreen;
LCell.FillPatternPattern := efpLightGrid;
LDoc.Filename := 'C:\TEMP\GRID.XLS';
LDoc.Write;
finally
freeAndNil(LDoc);
end;