Closed roda37 closed 8 months ago
The whole idea aboit the XLSX I/O library is to be able to read/write data sequentially, avoiding having all the contents in memory.
In your example you jump back to a previous line, which will cause unexpected behavior.
If you want that you should either prepare all the data in memory, or use a different library that does everything in memory and only writes at the end.
Why don't you just populata a 2-dimensional array and save it once all data is populated?
Below is a quick and dirty example of how to make this library as useful as possible! However is there a way to save items to the buffer and save them all at once to the output file? In the example below only the last one will be saved to the buffer and hence written to the output file. What I am asking is if there is a way to append the written cells to the buffer where it will be saved all at once?