Create and Save .XLS file ( not XLSX ) at runtime
Posted: Tue May 31, 2016 7:27 am
Hi Support,
I try to create runtime and save an XLS file in version 97 but when I write it the file is XLSX type.
Can you help me ?
thanks
Alberto
I try to create runtime and save an XLS file in version 97 but when I write it the file is XLSX type.
Code: Select all
xls := TXLSReadWriteII5.Create( nil );
try
xls.Version := xvExcel97;
xls.Filename := 'C:\Test.xls';
xls.Add;
xls.Sheets[ 0 ].AsString[ 0, 0 ] := 'D_TRANSAZIONE';
xls.write
finally
FreeAndNil( xls );
end;
thanks
Alberto