Share via

.xlsb file in DocumentFormat.OpenXml.Packaging throwing error of OpenXmlPackageException: 'The specified package is not valid.'

MahidaMahenoor-7372 20 Reputation points
2023-04-05T13:06:31.1566667+00:00

.xlsb file in DocumentFormat.OpenXml.Packaging throwing error of OpenXmlPackageException: 'The specified package is not valid.'

Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Open Specifications
Microsoft 365 and Office | Open Specifications

Technical documents for protocols, computer languages, standards support, and data portability. The goal with Open Specifications is to help developers open new opportunities to interoperate with Windows, SQL, Office, and SharePoint.

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

Answer accepted by question author

  1. Tom Jebo 2,436 Reputation points Microsoft Employee Moderator
    2023-04-06T17:15:42.0833333+00:00

    Hi @Mahenoor Mahida

    The Open XML SDK is better discussed on the following sites:

    https://stackoverflow.com/questions/tagged/openxml-sdk
    https://github.com/dotnet/Open-XML-SDK/issues

    Your question is specifically answered on:

    https://github.com/dotnet/Open-XML-SDK/issues/617

    The .xlsb file extension is an ISO 29500-2 OPC (Open Packaging Convention) package like the .xlsx, .docx and .pptx, however, the contents of the workbook, worksheet, etc... parts is not SpreadsheetML (i.e. XML) but Excel's binary format. Therefore it is not supported by the Open XML SDK which only supports WordprocessingML, SpreadsheetML and PresentationML (and DrawingML). Files with the .xlsb extension follow this file format specification:

    [MS-XLSB]: Excel (.xlsb) Binary File Format

    Hope this helps.

    Best regards,
    Tom Jebo
    Microsoft Open Specifications Support

    Was this answer helpful?

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.