#1 2021-02-11 15:35:29

Eric
Member
Registered: 2012-11-26
Posts: 129
Website

SynZip issues with .ods files

When trying to "modify" an existing .ods file (actually a zip) by recreating using AddFromZip, I bumped on a few issues:

* AddFromZip does not use RetrieveFileInfo, so it ends up with entries of size zero (this is is easy to fix)
* TZipRead.Create ignores folders
* TZipWrite does not support adding folders

The last two issues are the most problematic,

In that particular .ods, if the empty folders are missing, this is detected as a corrupt .ods

To create a test .ods just create a new spreasheet in LibreOffice, and hit "save".

Offline

Board footer

Powered by FluxBB