[
  {
    "Id": "696993",
    "ThreadId": "279120",
    "Html": "\r\n<p>Hi everybody,&nbsp;<br>\r\nI have an application that create an xlsx file. After the definition of all xml files i use ZipFile to create the wrapped myfile.xlsx<br>\r\nIf i open the file in Excel it's ok and no warnings were displayed, but i got I/O error on opening it in openoffice or in google docs. The strange is:&nbsp;1)open myfile.xlsx with winRar&nbsp;2)save xmls files and create a new archive with winrar without making\r\n any change of the original xml files&nbsp;<br>\r\n3)the new archive it'ok ok for excel, openoffice and google doc. ???<br>\r\nI tried different types of encoding during creation of the file but it's always the same...<br>\r\nAny idea??<br>\r\nMany thanks in advance<br>\r\nCecco</p>\r\n",
    "PostedDate": "2011-11-11T05:19:15.09-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "697023",
    "ThreadId": "279120",
    "Html": "<p>I don't know, but... you might do well to do a binary comparison of the .xlsx that works, with the one that does not work.</p>\r\n<p>There are a number of options available in creating zip files. DotNetZip makes some formatting decisions, which are generally benign. For example, DotNetZip encodes into each Zip entry, a high-precision NTFS timestamp for each file, by default.&nbsp; It could be that some other tools do not handle the results of these decisions.&nbsp;</p>\r\n<p>a binary comparison of the files would show you&nbsp;the differences.</p>\r\n<p>Another option for you is to perform various trials, turning things off.&nbsp; For example, set the property <span class=\"selflink\">EmitTimesInWindowsFormatWhenSaving to&nbsp;false.&nbsp; Then, see if it makes a difference for openoffice. </span></p>",
    "PostedDate": "2011-11-11T06:32:50.143-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "697060",
    "ThreadId": "279120",
    "Html": "<p>Many Thanks for your prompt reply.. &nbsp;:-)</p>\r\n<p>I don't know exactly why but with this configuration it works perfectly.</p>\r\n<p>\r\n<div style=\"color: black; background-color: white;\">\r\n<pre>zf = <span style=\"color: blue;\">new</span> Ionic.Zip.ZipFile(fileName, Encoding.UTF8);\r\n\r\nzf.Encryption = Ionic.Zip.EncryptionAlgorithm.None;&nbsp;</pre>\r\n<pre>zf.EmitTimesInUnixFormatWhenSaving = <span style=\"color: blue;\">false</span>;\r\nzf.EmitTimesInWindowsFormatWhenSaving = <span style=\"color: blue;\">false</span>;\r\n\r\nzf.UseZip64WhenSaving = Ionic.Zip.Zip64Option.Never;\r\nzf.CompressionMethod = Ionic.Zip.CompressionMethod.None;\r\nzf.CompressionLevel = Ionic.Zlib.CompressionLevel.Level3;</pre>\r\n<pre><br /></pre>\r\n<pre>Regards</pre>\r\n<pre><br /></pre>\r\n<pre>Cecco</pre>\r\n</div>\r\n</p>",
    "PostedDate": "2011-11-11T07:49:36.8-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "697132",
    "ThreadId": "279120",
    "Html": "<p>I'm pretty sure you can use DEFLATE Compression.&nbsp;</p>\r\n<p>You can probably leave that line out.</p>\r\n<p>zf.CompressionMethod = Ionic.Zip.CompressionMethod.None;</p>\r\n<p>Also, you should use a using() clause. Every time.&nbsp; Every example shows this.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2011-11-11T10:52:42.55-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]