brechtsanders / xlsxio

XLSX I/O - C library for reading and writing .xlsx files
MIT License
417 stars 112 forks source link

Opening an existing file #50

Closed vic7tar closed 5 years ago

vic7tar commented 5 years ago

It would be great if you could tear off an existing xlsx-file, for example, ready-made templates, for later recording. Is this possible in the future?

brechtsanders commented 5 years ago

One of the main goals of this library is to be able to stream data to it without having the entire sheet in memory. What you are asking is conflicting with this goal as it would require loading the template in memory and modifying it there. To do what you are asking for you are better off using a library that is loads the spreadsheet in memory before saving it.

Here are a few links to other libraries, maybe one of them does what you need: https://github.com/tfussell/xlnt https://libxlsxwriter.github.io/ http://www.libxl.com/