procedure TfmECACMainForm.Readexcelfile1Click(Sender: TObject);
begin
If ExcelOpenDialog1.Execute
then begin
Form10.AdvGridExcelIO1.XLSImport(ExcelOpenDialog1.Filename);
Form10.ShowModal ;
end;
end;
However I get an exception": 'The file "" is invalid'.
Thanks. Using XLS instead of XLSX was the solution. I debugged the code and saw that it was looking for a specific XLS signature. A slightly better error message (e.g. 'not an XLS file' instead of 'the file "" is invalid') would have helped here.
Any plans to support the XLSX format in the future?