if you execute the code below, you will get an EListError exception.
Code: Select all
XLS.Version := xvExcel97;
XLS.Delete(0);
XLS.Add;
XLS.FileName := 'C:\Test.xls';
XLS.Write;
Code: Select all
XLS.Version := xvExcel97;
XLS.Delete(0);
XLS.Add;
XLS.FileName := 'C:\Test.xls';
XLS.Write;