We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

NullReferenceException opening Excel 2007 document

Hi, I got a NullReferenceException opening an Excel 2007 ("xslx") document with Aspose.Cells 4.9.1.10:

System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Aspose.Cells.Workbook.x4683c3b8e44aebaf(Stream xcf18e5243f8d5fd3)
bei Aspose.Cells.Workbook.Open(String fileName, FileFormatType type)
[...]

Please find attached a sample file. Thanks and regards.

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

I tested your issue and your template file opens fine with the version you are using. Please share the sample code to reproduce the issue and we will check it soon.

Thank You & Best Regards,

Hi, here is my sample code:

Cells::Workbook ^mpg_Doc=gcnew Cells::Workbook();
mpg_Doc->Open(sFilePath,Cells::FileFormatType::Excel2007Xlsx);

Thank You & Best Regards.

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Please create a sample application and post it here to show the issue. We will check it and get back to you soon.

Thank You & Best Regards,