Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.07 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.07 KB

Phonegap-XLS-Plugin

A Phonegap plugin to save XLS files

How to use

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); }
    );
}

Instalation

From github

cordova plugin add https://github.com/klawdyo/Phonegap-XLS-Plugin.git

From file

Copy full directory to project root

cordova plugin add <Path-to-Plugin's-directory>

Dependences

Phonegap's users permissions to File plugin

Install File plugin

cordova plugin add org.apache.cordova.file

Thanks To