Fortunately it was easier as expected. Originally, I created an empty ODS file with Microsoft Excel. This did not work with my approach. But when I create an empty ODS file with LibreOffice, it works perfectly.