Quote:
The problem is when I try to open the excel file I receive an error from Excel stating “Excel cannot open the file Invoice System.xlsx because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file
Excel tells you that your file is not a proper Excel data file.
Simply naming a file "Invoice System.xlsx", is not enough to make it an Excel data file or a file that Excel can read.
Excel can read numerous data files: csv, xml, html and more. you have to study what can be done with each and choose witch one fit your needs.