I have a LWC with a custom button to export data into xls format. I am able to export data in CSV format but in CSV styling cannot be added as it is a limitation in CSV that styling does not gets saved.
Please let me know if there is any other option to export data in xls format.
답변 1개
Wherever you have declared the filename in the component. you can add the extension there itself
Ex: fileName: 'file1.xlsx'