I just started using FPSpreadsheet to create simple Excel files, and the AOverwriteExisting parameter seems to be ignored. Mostly, on my Win10 machine, the program always overwrites the file regardless of the true/false value I am passing.
Has anyone else had a similar issue?
I am using Lazarus 1.6.4 32-bit under Windows 10, but had the same results compiling with the 64-bit version.
Here's a relevant bit of my source:
try
workbook.WriteToFile('serial_numbers.xlsx',ssformat,true,[])
except
err_memo.Color := clRed;
end;
[...]
Str(qty,s);
fname := 'sn_log\'+base+'_1_'+s+'.xlsx';
try
workbook.WriteToFile(fname,ssformat,false,[])
except
err_memo.Color := clRed;
end;