On 19 Jul 2021, at 18:10, Sheldon Cooper wrote:
> The same work I do with python (manipulating xlsx files and DB) is
> performed in another office via PHP and that tool, which has been working
> perfectly for at least 5 years, expects to find sharedStrings.
Which means it doesn't follow the specification which clearly makes it optional. We've worked very hard with the library to implement the specification. Openpyxl reads sharedStrings.xml but doesn't write it.
> What I meant is that openpyxl should take into account whether or not that
> file is present. If it exists it restores it, otherwise it doesn't use it.
Nonsense, there is no point in slavishly preserving the package structure. Particularly when streaming large reports, sharedStrings can be a significant overhead.
> Anyway, thanks to your suggestion I have installed version 2.5 and
> everything is OK.
Great, as long as you can live without the subsequent additions and improvements.