Open NK01 opened 4 days ago
Hi @NK01 & thank you for reporting this issue. It sounds like a bug: I see nothing wrong with re-using the XLDocument variable like you do. I will have a look to understand why the document seems to not properly "reset" on ::create, when I find some time - I am currently quite busy & I hope this isn't too urgent, since you have a workaround.
My apologies if this takes a few weeks for me to address.
Thank you for the response and yeah it is not urgent, as I have already put the workaround in the code. No worries for the delay, take your time
The issue example:
In the above example the second workbook does not contain any data, but if I change some data in the
std::vector<std::vector<std::string>> data
matrix then the changed data is inserted into the second matrix but not anything elseCurrently the workaround is to create a new
OpenXLSX::XLDocument doc
like this:then everything works as expected. Is the first way not correct?