Version with Unicode support
C++ library for creating XLSX files for MS Excel 2007 and above.
Brought to you by:
oxod,
programmeralex
Hello all.
Thanks again to Pavel for the good library.
I had some free time and I tried to make support for Unicode, and also fix some bugs.
Below is a list of major changes (I named r0.21 version):
Unfortunately I can not attach a file to the topic, so I leave a link to Dropbox:
https://dl.dropboxusercontent.com/u/5514290/SimpleXlsx%20r0.21.zip
I tested the updated library on the following platforms:
Linux Mint 18.1 Cinnamon 64-bit
gcc version 5.4.0 64-bit
Linux Ubuntu 10.04.1 LTS 32-bit
gcc version 4.4.3 32-bit
Windows 7 SP1 64-bit
MinGW 4.8.2 32-bit
Windows 7 SP1 64-bit
Microsoft Visual Studio 2012 C++ 32-bit
I hope that the changes will be useful. I will be glad to any feedback about of the updated library.
Ok, the second message allows to attach a file.
A small example of the updated library:
Version 0.22. Change log:
- Support for the TDM-GCC 64-bit compiler (thanks to Eduardo Baena).
- Minor bug fixes.
Note for Windows users. To work with Unicode you must specify two macros/defines in the compiler options: "_UNICODE" and "UNICODE".
Thanks Alexandr for the updates.
It would be good if we could create charts in the worksheets not necessarily in separate chartsheets. Do you think it is possible?
Hi Aso.
Thank you for your message. I will try to deal with this issue.
Perhaps in 3 weeks I will have free time for this.
If you are willing to help with testing, then send me an email. My address is in the source code.
HI,
Alexandr, thanks for good enhancements.
I hope this week I will improve scatter charts to more "scientific" appearance, including color and symbol selection and width of the lines.
Regards.
Hi E.Naumovich.
This is a great idea. You can send me your results for testing. My address is in the source code.
Hi,
please find attached file, it include improved version of lib code and kind of example.
It is not finished yet- I hung on colors. I know how to introduce them, but I don find a solution, handy for user. Also I did not touch a linear plot code- now there are some stubs to avoid conflicts.
I`m using mingw_w64 gcc 6.x 32b
Version with RGB colors. Colors are not checked inside.
Version with RGB colors+ autogenerated colors libraries.
Error in Chartsheet.cpp concerning orietation of the X-axis title is corrected.
I`m waiting for response,
Regards.
Hello,
I found an arror in implementation of the X-axis code.
Probably two kinds of the X axes should be considered, one "cat" (for bar diagramms?) and one "val" (for scatter and for lines).
I`ll put parched code probaly tomorrow.
Hi,
Another one iteration. Corrected issue with X-axis tag.
Example is in tst_charts1 sub-dir.
Regards,
Hi.
Thanks for your useful enhancements. I tested an updated library with your example, it works well (MinGW 4.8.2 32-bit).
I liked your idea with the library of auto-generated colors :-)
I have one question. The original library does not require C++11. Your version requires C++11. Maybe we should maintain compatibility with old compilers? I think this can be useful.
"maintain compatibility with old compilers? "
I`m using last versions of gcc which are avaliable with mingw, so I dont care too much about pre-C++11 compatibility, MS VC compatibility, etc..
With c++98 I found few points and made corrections. see attach.
Last edit: E.Naumovich 2017-04-06
Just the original library does not use C++11 and I tried to keep compatibility for existing projects. I asked you about this.
I tested simplexlsx-r022e_201704060905.7z, everything works. Thanks for the change.
P.S. I also use GCC and C++11 in all my projects under Linux and Windows.
Version 0.23. Change log:
- Improved scatter charts to more "scientific" appearance, including color and symbol selection and width of the lines (thanks for this to E.Naumovich).
- Creating charts in the worksheets by CWorkbook::AddChart. For chart sheets must be used CWorkbook::AddChartSheet (thanks for idea to Aso).
- Now the sheets are arranged in order of creation. Using CWorkbook::SetActiveSheet can be set the active sheet (by default the first sheet).
- CWorkbook::m_styleList was moved to private. Now must be used CWorkbook::AddStyle() and CWorkbook::GetFonts().
- Many internal changes.
- Added examples to the archive.
Last edit: Alexandr Belyak 2017-05-14