Writing PNG images using streams fails in V2.0 when targeting .ods format. lazarus / 49-FPSpreadsheet ---------------------------------------------------------------------- Russ · 2025-09-23 12:58 There is an issue when writing PNG images to worksheets using streams in V2.0 that didn't manifest in V1.16: When PNG image(s) are written to a sheet using a stream through the TsWorkSheet.WriteImage() and the resultant workbook is then written to disk in .ods format, when attempting to open the document in Libre Office Calc, a read error "Format error discovered in the file in sub- document content.xml at 1,4468(row,col)" is thrown. When the image is written using the File version of the TsWorksheet.WriteImage() function where the image is loaded from a PNG file, then everything works. There are no problems with .xlsx format. The .ods archives were unpacked and the problems found are the following: In the Picture directory there are no images.In content.xml the field