Free Support Forum - aspose.com

Xls file version

Hi!

How can I read excel file version (Excel2000, ExcelXP, Excel97 etc…)?

I guess something like
Aspose.Excel.Excel xls = new Aspose.Excel.Excel(lic);
xls.Open(filename);
Aspose.FileFormatType frmt = xls.Version;//???

Hi,

You can directly open different versions of excel file with Excel.Open method. Aspose.Excel can automatically distinguish the xls version.

Aspose.Excel.Excel xls = new Aspose.Excel.Excel(lic);
xls.Open(filename);

That’s enough.

By the way, now we recommend to use Excel.SetLicense method to set license.

Yes, Excel.Open() can open any version of excel file.
But I want to know what version exactly did he open.

Now Aspose.Excel can open excel file of Excel97, Excel2000, ExcelXP, Excel2003. Some file of Excel95 format is also can be opened.

Aspose.Excel doesn’t care about the version of Excel file for difference among Excel97, Excel2000, ExcelXP, Excel2003 is small.