Read a pseudo excel file

May 21, 2008 at 8:29 AM
The following code:
ExcelPackage xlPackage = new ExcelPackage(file)

If the excel 2007 file is not a real excel file(e.g. create a .txt file and rename to .xlsx file), I recommend that an exception should be raise.