You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi desoss,
just setting the value doesn't format the cell.
You should do something like:
sheet.style(row, col).format("0").set(); // format as number without digits
sheet.style(row, col).format("0.00").set(); // format as number with 2 digits
sheet.style(row, col).format("dd.MM.yyyy").set(); // format as date
sheet.style(row, col).format("0.00%").set(); // format as percent
Whenever I write an Integer or a Long, the generated Excel cell has a General numbering format.
Isn't it possible to generate it as a Number?
Here's the code that I'm using:
I don't know if it might help or not, but I've decompiled the .xlsx file that I've generated, here's the XML code related to some cells:
If I manually change the numbering format of these 2 cells from General to Number the related decompiled XML is:
The text was updated successfully, but these errors were encountered: