javascript - How to set delimiter while exporting html table to xls file, so that it won't ask for delimiter separately when opening file with openOffice calc? -
javascript code generate xls file
// string obtained in xls file in different columns var exportstring = 'source1; 240; a/v signal drop out; 15'; // creating anchor tag var = document.createelement('a'); a.href = 'data:attachment/xls,' + exportstring; a.target = '_blank'; a.download = 'filename.xls'; document.body.appendchild(a); a.click();
you may have different delimiters not doing wrong open office needs know should used delimiter.
Comments
Post a Comment