Multiple style during export excel
Multiple style during export excel
datatable_user
Posts: 19Questions: 6Answers: 0
I need to export excel where specific row or column contain multiple style. In my example column Language
is suppose to be center and bold. My problem is column Language
is center but didn't bold.
Test case is here : https://jsfiddle.net/6f1m2nbo/4/
Weirdly row 1 (title) is not bold anymore. Please assist and thanks in advance.
Answers
This can be very, very cumbersome. The problem is that you cannot apply multiple styles to a cell at a time. If you have styling like bold, grey background, centered just for one cell you need to define a new style and apply that.
Here is something from my own coding that may or may not help you. Sorry, but I can't help you with more ...
In this code I
- define a bold and underlined font
- define a new number format (percent with 4 decimal places)
- define 4 new styles (four decimal places; grey background, bold and centered; two decimal places and bold; grey background, wrapped text)
Most of the other stuff you may probably ignore, I guess. I made my own little column transformation variable to convert column numbers into Excel column letters, too.