Client Side Table To Excel Export Plugin - jQuery ExcelGen

File Size: 17 KB
Views Total: 12088
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Client Side Table To Excel Export Plugin - jQuery ExcelGen

Yet another Table To Excel generator for jQuery that allows you to export and download your HTML table as an MS Excel file.

Alternative plugins:

See also:

How to use it:

1. Load the required JavaScript libraries in your html document. Dependencies:

  • jQuery
  • jszip.js: Create, read and edit .zip files.
  • FileSaver.js: Save your file as an Excel file.
<script src="/path/to/jquery.min.js"></script>
<script src="/path/to/jszip.min.js"></script>
<script src="/path/to/FileSaver.min.js"></script>

2. Load the main JavaScript excel-gen.js after jQuery.

<script src="excel-gen.js"></script>

3. Create a new ExcelGen object and specify the target html table to extract the tabular data.

myExcel = new ExcelGen({
  "src_id": "yourTable"
});

4. Generate an Excel spreadsheet from the tabular data.

excel.generate();

5. Decide whether or not show the headers.

myExcel = new ExcelGen({
  "src_id": "yourTable",
  "show_header": true
});

This awesome jQuery plugin is developed by ecscstatsconsulting. For more Advanced Usages, please check the demo page or visit the official website.