Hello Lars,
I tried out your solution with version 5.20.48, but unfortunately it doesn't work. As far as I can see, the value of CompressStrings doesn't affect the content of the output file. I unpacked the two xlsx files (one with CompressStrings = True and one with False) and compared the files in them, but I found no difference in their contents, except for the time of creation and modification in docProps\core.xml.
The code is:
Code: Select all
procedure TForm1.btn1Click(Sender: TObject);
var
XLS: TXLSReadWriteII5;
begin
XLS := TXLSReadWriteII5.Create(nil);
try
XLS[0].AsString[0, 0] := 'Kôvàgò Kàlmàn';
XLS[0].AsString[0, 1] := '陰茎 Kôvàgò Kàlmàn';
XLS.Filename := 'D:\output.xlsx';
XLS.CompressStrings := False;
XLS.Version := xvExcel2007;
XLS.Write;
finally
FreeAndNil(XLS);
end;
end;
And the output is still the same:
Am I doing something wrong?