I am exporting an excel sheet using jQuery DataTable. I need to set height of my 1st row that containing Title with 2 lines. But when I export the excel sheet, the title is showing in one line until I manually clicked on the row. When I clicked the row manually title showing in 2 line. So I need to set height for this title row.
I have tried with below code but it's not working. Can anyone help me?
[{
extend: 'excelHtml5',
title: "May 1st test: " + '\n' + "Secound text ";
customize: function (xlsx) {
var sheet = xlsx.xl.worksheets['sheet1.xml'];
$('row, sheet').attr('ss:Height', '100');
//$('row:first c', sheet).attr('s', '80');
},
}]