i want to download excel file from html table and i want to export only selected column and without any data. The ex-cel file should show only the header of the html table without data.
here is my sample jsfiddle.
http://jsfiddle.net/TheSharpieOne/XNVj3/1/
my code
$scope.exportData = function () {
var blob = new Blob([document.getElementById('table2excel').innerHTML], {
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"
});
saveAs(blob, "Report.xls");
};
from this fiddle i want only Name and DOB column without data.
Is this is possible to download the excel file.
Thank you.
via Vinoth
No comments:
Post a Comment