The file's format is not supported or you don't specify a correct format



We are getting The file’s format is not supported or you don’t specify a correct format exception from aspose.cells API while creating a workbook…

// code snippet//

var workbook=New workbook(sourcePath)
Compliance = OoxmlCompliance.Iso29500_2008_Strict




Thanks for your query.

Please share your sample file with us for our testing. We will reproduce the problem and provide our feedback after analysis. You may ZIP the file and upload here and if you face any problem, please upload it to some online file sharing server like Dropbox/Google Drive etc. and paste the link here for downloading the file.