Posted 29 November 2018, 7:59 pm EST
Setting bold for entire spread sheet taking huge time. 100*100 took almost 3 mins, which is huge for end user.
We are using below code to do the job. Is there any way to set bold for entire spread sheet in an efficient way? Although I don’t want to update the entire style of the spread sheet as the individual cell may have their own style. I only want to set text as bold without affecting cells current style.
Please find attached example, which we used for our testing
for (var col = 0; col < sheet.getColumnCount(); col++) {
for (var row = 0; row < sheet.getRowCount(); row++) {
sheet.setStyle(row, col, style);
}
}