OpenXML won't read file created with ZLIB 1.2.8

Home Forums SpreadsheetML OpenXML won't read file created with ZLIB 1.2.8

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3717
    Eric White
    Keymaster

    Hi,

    This is an interesting bug, and given the opacity (to me) of the internals of zip files, I am uncertain of the source of the issue.

    Which version of the Open-Xml-Sdk are you using? If you are using 2.5, then you might try 2.6, and vice versa. 2.5 and 2.6 use different libraries for reading the zip file. 2.5 uses a weird internal library that is only (afaik) used by the Open XML SDK. 2.6 uses System.IO.Compression, which is a newer, more modern implementation for ZIP.

    Cheers, Eric

    #3725
    david_vsn
    Participant

    Thanks Eric,

    I’ve followed your suggestion and have tried both versions 2.5 and 2.6 and they both give the same error. Sadly, we have switched to the NPOI library which works with the file created with ZLIB, although more slowly. The strange thing is that Excel handles the file fine, and I would have through it would have used something like System.IO.Compression. Thanks for your help, that was useful.

    Thanks again,
    David.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.