Good morning.
I would like some help with the JQuery .wordExport () command. I'm able to export html without problems to word document, however, when I open the document, the margins are of the default size of the word instead of the margins delimited in html / css, just as the file stays in web view mode rather than the print view, which is the default for displaying files. Do you know how I can export the document already in print preview and with the margins of the page delimited to the size I need? I need to export a contract constantly, and I'm having problems with that issue. Any help is welcome.
Note: For specific reasons, I can not post the full html code, but the script looks like this:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script><scriptsrc="FileSaver.js"></script>
<script src="jquery.wordexport.js"></script>
<body>
<a class="word-export" href="javascript:void(0)"> Export as .doc </a>
<script>
jQuery(document).ready(function($) {
$("a.word-export").click(function(event) {
$(".page-content").wordExport();
});
});
</script>
<div class="page-content">
And here comes the html of the word document. It's very extensive, and it has confidential information and therefore I can not post here, but then down is just text edited with css in the html itself (I converted the word document into html using an online converter and got the rest in hand) p>
Note: Yes, I am using jquery 1.11 because I am still testing the functionality of exporting the document, once this is done I will modify the code.