Open desoss opened 8 months ago
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
Does that help?
Best regards, Holger
@holleymcfly Could you add more examples about cell formatting to README file?
Hi CamilYed,
I'm not a contributor on the project. Which examples are you looking for?
Best, Holger
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: