Vote count:
0
I'm using excel-builder to generate an excel file, but couldn't manage to put it to work. The reason for this is that I need all my source in the same file, I cannot use other files and excel-builder usesRequireJS. I have also never used RequireJS before.
According to the docs, here's how to create a workbook with excel-builder:
require(['excel-builder/Excel/Workbook'], function (Workbook) {
var workbook = new Workbook();
});
What I did was copy+paste the excel-builder code from the excel-builder.compiled.min.js file, which seems to already include the dependencies. After that I place my code, but the problem is that nothing happens.
require(['excel-builder/Excel/Workbook'], function() {
console.log('here');
});
I don't even get an error. How can I use this module like this?
asked 16 secs ago
Using excel-builder inline in a document
Aucun commentaire:
Enregistrer un commentaire