locked
Download 2 table to 2 excelworksheet using blob RRS feed

  • Question

  • I try to download 2 tables to excel using blob. It works fine for one table, but how to put second table in same ExcelWorkbook but different WorkSheet? Here is a code
    var html = '<html><head></head>';
    html += '<body style="page:land;"><table>'+$('#Table1').html()+'</table><table>'+$('#Table2').html()+'</table></body></html>';
    var blob = new Blob([html], { type: "application/vnd.ms-excel;charset=utf-8" });
    navigator.msSaveOrOpenBlob(blob, name)

       

    Tuesday, February 5, 2019 7:46 PM

All replies