jszip error when trying to export to excel
jszip error when trying to export to excel
MaheshMarella
Posts: 1Questions: 1Answers: 0
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown: I get this error: "Error: Module name "stream" has not been loaded yet for context: _. Use require([])"
Description of problem:
Getting above error and excel button not shown. I have followed order of loading libs as follows
- buttons
- jszip
- html5 buttons
This discussion has been closed.
Answers
i have same problem when use pdfmake.min.js
What is module name stream??
i cant found it!
im using require.js
If i remove comment on pdfmake.min my page give error:
Error messages shown: I get this error: "Error: Module name "stream" has not been loaded yet for context: _. Use require([])"
mypage.html
and this is datatable
File 'Roboto-Regular.ttf' not found in virtual file system error including pdfmake.min.js
after changed :
https://nightly.datatables.net/buttons/js/dataTables.buttons.min.js
UPDATE
using
https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.65/pdfmake.js
instead of pdfmake.min.js solve error but
button PDF not work
and button excel is not displayed
button CSV not work with IE browser
Hi,
If you could give me a link to your page please I can take a look at it.
Regarding the CSV issue, what version of IE are you using? It should work in IE10+ as noted in the docs -
csvHtml5
.Allan
Thank you for reply...
this is my page:
https://hastebin.com/fuwelidofo.xml
im using ie 11 when i press button pdf or csv i have this message:
impossible to download
Allan meant a link to the page demonstrating the issue, not to the code. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
I suppose the problem is on require.js
If i delete this two lines:
I get this error:** "Error: Module name "stream" has not been loaded yet for context: _. Use require([])"**
https://github.com/PeppeGC/Datatable
in dir 'not work' there is the page
ok you can find it in dir 'not working' on
https://github.com/PeppeGC/Datatable
in page ** orderTable - TODO.html ** i have include
that use require.js
function dt() is in js\lib\custom_leftbar.js (datatable)
Again, that's a link to the code. Can you create a fiddle (such as http://live.datatables.net/) to demonstrate the problem, please.
Colin
solved adding:
window.JSZip = require('jszip.min');