Client Side Table To Excel Export Plugin - jQuery ExcelGen

Client Side Table To Excel Export Plugin - jQuery ExcelGen

jQuery PluginsjQuery Other PluginsjQuery excel-gen.js

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:

How to use it:

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

<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.

  • Publication date: 22.01.2018
  • Source