tfussell / xlnt

:bar_chart: Cross-platform user-friendly xlsx library for C++11+
Other
1.5k stars 423 forks source link

Got exception when opening xslx file with embedded PowerPoint #439

Open tlouwers opened 4 years ago

tlouwers commented 4 years ago

When I try to open a sample xslx file, which has a sheet in it with an embedded PowerPoint, I get the following exception: xlnt::exception : missing global header signature

If there are more sheets in it, none of them can be handled as loading the xslx file fails with that exception. I was wondering if there is a way to still be able to read the other sheets, simply ignoring the sheets which cannot be read, or should the PowerPoint sheet be supported as well (or ignored without exception)?

TestWorkbook.xlsx

tfussell commented 4 years ago

This isn't something I've tried in the past, but it should definitely be possible to skip over the embedded content somehow. I'll let you know when I have a solution.