I want to export a rtl direction xlsx file using XLSX-Style According to official documents I use below code to change view direction to rtl
if (!wb.Workbook) wb.Workbook = {};
if (!wb.Workbook.Views) wb.Workbook.Views = [];
if (!wb.Workbook.Views[0]) wb.Workbook.Views[0] = {};
wb.Workbook.Views[0].RTL = true;
but again exported view direction is ltr
try this :
const workbook = {
Sheets : {
'data' : worksheet
},
SheetNames : ['data'],
Workbook: {
Views: [
{RTL: true}
]
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With