Excel export: how to align text to the center in excel cell?

Excel export: how to align text to the center in excel cell?

elen11elen11 Posts: 6Questions: 4Answers: 0

Hello,
could you tell me, please:
How to set alignment center to the excel cells while exporting?
I tried this, but it doesn't work:

 var col = $('col', sheet);
    col.each(function () {
        $(this).attr('alignment horizontal', 'center');
    });

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.