jQuery Word Export is a jquery plugin which export all the web page content without refreshing the page into the Microsoft Word document. This plugin export all the content weather it's html tag or image or html table.
Download FileSaver.js from https://github.com/eligrey/FileSaver.js/
How To Use
1. Add the below mention library reference
<script src="jquery-1.11.1.min.js"></script>
<script src="FileSaver.js"></script>
<script src="jquery.wordexport.js"></script>
<script src="bootstrap.min.js"></script>
|
2. Use the below code to perform operation
jQuery(document).ready(function ($) {
$("a.jquery-word-export").click(function (event) {
$("#page-content").wordExport();
});
});
|
1 comments:
Write commentsThanks for explaining how to do it and in your article you have explained it very well. https://www.technologist360.com/
Reply