Missing value in AddCell()
C++ library for creating XLSX files for MS Excel 2007 and above.
Brought to you by:
oxod,
programmeralex
When call AddCell method with big number like 31594725 i have in xslsx i have in cell: 31594700
Is that because in xml in package i have
<c r="D7" s="6"><v>3.15947e+07</v></c>
To solve this problem, just change this line:
m_OStream << '<' << TagName << '>' << Value << "</" << TagName << '>';
to this one:m_OStream << '<' << TagName << '>' << std::fixed << Value << "</" << TagName << '>';
Add info: https://en.cppreference.com/w/cpp/io/manip/fixed
It is possible that in other places this problem also occurs.
Better:
Hi,
Sorry for the long answer, I am on a business trip now.
And thanks for your help. Somewhat later, I will check everything well and report it additionally.
I apologize for my long silence, I still have a shortage of free time.
I checked your solution, it works great. Thanks again for helping to develop the library!
I will update the library a little later.
No problem.
I'm glad that I can help.