Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Re: libxlsxwriter compilation problem
Re: libxlsxwriter compilation problem [message #61741] Wed, 23 July 2025 12:16 Go to next message
forlano is currently offline  forlano
Messages: 1215
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

has somebody used libxlsxwriter with U++? https://github.com/jmcnamara/libxlsxwriter

I am having problem with zlib that is mandatory for this library.
We have different plugin/z. I tried several but I got always complain from compiler.
Which is the U++ package equivalent of zlib ?

Thanks,
Luigi


[Updated on: Fri, 22 August 2025 11:34]

Report message to a moderator

Re: libxlsxwriter compilation problem [message #61742 is a reply to message #61741] Wed, 23 July 2025 21:03 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3443
Registered: August 2008
Senior Veteran
Hi Luigi

I don't know about libxlsxwriter but if you want you can try XLNT in UppHub.


Best regards
Iñaki
Re: libxlsxwriter compilation problem [message #61743 is a reply to message #61742] Thu, 24 July 2025 08:25 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1215
Registered: March 2006
Location: Italy
Senior Contributor
Hi Koldo,

XLNT is even better. I was not aware of it.
Thanks!
Luigi
Re: libxlsxwriter compilation problem [message #61744 is a reply to message #61743] Thu, 24 July 2025 12:11 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1215
Registered: March 2006
Location: Italy
Senior Contributor
I can compile it and do basics things.
It is very hard (for me) to format a cell defining the border.
The library is non longer mantained by his author and now is mantained
by a community https://github.com/xlnt-community/xlnt

Luigi
Re: libxlsxwriter compilation problem [message #61748 is a reply to message #61744] Fri, 25 July 2025 21:48 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3443
Registered: August 2008
Senior Veteran
Thank you Luigi for the information.

Please confirm if you want to save an xlsx file indicating the borders of each cell.


Best regards
Iñaki
Re: libxlsxwriter compilation problem [message #61749 is a reply to message #61748] Sat, 26 July 2025 19:57 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3443
Registered: August 2008
Senior Veteran
Hi Luigi

I have included this in the demo:

index.php?t=getfile&id=7100&private=0

In addition xlnt is updated.
  • Attachment: img.png
    (Size: 5.42KB, Downloaded 120 times)


Best regards
Iñaki

[Updated on: Sat, 26 July 2025 20:45]

Report message to a moderator

Re: libxlsxwriter compilation problem [message #61750 is a reply to message #61748] Sun, 27 July 2025 00:08 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1215
Registered: March 2006
Location: Italy
Senior Contributor
Hi Koldo,

Thanks a lot!
Luigi
Re: libxlsxwriter compilation problem [message #61779 is a reply to message #61741] Fri, 22 August 2025 11:32 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1215
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

today i compiled on linux the same app that worked under Windows and I got this error


/home/luigi/Documenti/upp/.config/u++/theide/UppHub/Xlnt/Xln t/Xlnt.cpp (4): In file included from /home/luigi/Documenti/upp/.config/u++/theide/UppHub/Xlnt/Xln t/Xlnt.cpp:4:
/home/luigi/Documenti/upp/.config/u++/theide/UppHub/Xlnt/Xln t/Xlnt.h (13): error: unknown type name 'Grid'
/home/luigi/Documenti/upp/.config/u++/theide/UppHub/Xlnt/Xln t/Xlnt.cpp (20): error: unknown type name 'Grid'


the error comes from:

#include <plugin/Xlnt/include/xlnt/xlnt.hpp>
#include <Functions4U/Functions4U.h>

namespace Upp {

String GetCell(int col, int row);

void XlsxFill(xlnt::worksheet &ws, const Grid &g, bool removeEmpty);
	
}


any idea?
Thanks,
Luigi
Re: libxlsxwriter compilation problem [message #61780 is a reply to message #61779] Fri, 22 August 2025 17:56 Go to previous messageGo to next message
Oblivion is currently offline  Oblivion
Messages: 1226
Registered: August 2007
Senior Contributor
Hello Luigi,
Quote:
today i compiled on linux the same app that worked under Windows and I got this error


/home/luigi/Documenti/upp/.config/u++/theide/UppHub/Xlnt/Xln t/Xlnt.cpp (4): In file included from /home/luigi/Documenti/upp/.config/u++/theide/UppHub/Xlnt/Xln t/Xlnt.cpp:4:
/home/luigi/Documenti/upp/.config/u++/theide/UppHub/Xlnt/Xln t/Xlnt.h (13): error: unknown type name 'Grid'
/home/luigi/Documenti/upp/.config/u++/theide/UppHub/Xlnt/Xln t/Xlnt.cpp (20): error: unknown type name 'Grid'


I checked it and It works fine on my linux setups.

Probably the problem is installed version of Functions4U. Grid class is added to the package in Jan 26, 2024.
Did you update that to its latest version?


Best regards,
Oblivion


[Updated on: Fri, 22 August 2025 17:56]

Report message to a moderator

Re: libxlsxwriter compilation problem [message #61782 is a reply to message #61780] Mon, 25 August 2025 08:49 Go to previous message
forlano is currently offline  forlano
Messages: 1215
Registered: March 2006
Location: Italy
Senior Contributor
Oblivion wrote on Fri, 22 August 2025 17:56

Probably the problem is installed version of Functions4U. Grid class is added to the package in Jan 26, 2024.
Did you update that to its latest version?


Thanks Oblivion,

that was the problem. I was using an older version in MyApps.

Best regards,
Luigi
Previous Topic: virus detected in my programs
Goto Forum:
  


Current Time: Sun Aug 31 11:40:29 CEST 2025

Total time taken to generate the page: 0.04023 seconds