A Phonegap plugin to save XLS files
var data = [
{id:"1", name:"claudio"} ,
{id:"2", name:"marta"} ,
{id:"3", name:"isabela"}
];
dirname = "ExcelAPI";
filename = "file-example.xls";
sheetname = "Plan1";
window.xls.save( data, dirname, filename, sheetname,
function(){ alert('success'); },
function(err){ alert(err); }
);
}
cordova plugin add https://github.com/klawdyo/Phonegap-XLS-Plugin.git
Copy full directory to project root
cordova plugin add <Path-to-Plugin's-directory>
Phonegap's users permissions to File plugin
cordova plugin add org.apache.cordova.file