Excel export not showing

Excel export not showing

ahmedxahmedx Posts: 2Questions: 1Answers: 0

It is kind of a spammed question, however i couldn't resolve it. All other buttons working fine (copy, csv, print, csvHtml5). Only excel button is not showing in my project, it worked once after including the minified files from download builder.
Following are my npm and sass imports, thank you for your help in advance

Npm---
require('pdfmake/build/pdfmake.min.js');
require('pdfmake/build/vfs_fonts.js');
require('jszip/dist/jszip.min.js');
require('datatables.net-bs4');
require('datatables.net-buttons-bs4');
require('datatables.net-buttons/js/buttons.colVis.js');
require('datatables.net-buttons/js/buttons.flash.js');
require('datatables.net-buttons/js/buttons.html5.js');
require('datatables.net-buttons/js/buttons.print.js');
require('datatables.net-colreorder-bs4');
require('datatables.net-fixedcolumns-bs4');
require('datatables.net-keytable-bs4');
require('datatables.net-responsive-bs4');
require('datatables.net-rowgroup-bs4');
require('datatables.net-rowreorder-bs4');

Sass ---
@import '~datatables.net-bs4/css/dataTables.bootstrap4.css';
@import '~datatables.net-buttons-bs4/css/buttons.bootstrap4.css';
@import '~datatables.net-colreorder-bs4/css/colReorder.bootstrap4.css';
@import '~datatables.net-fixedcolumns-bs4/css/fixedColumns.bootstrap4.css';
@import '~datatables.net-keytable-bs4/css/keyTable.bootstrap4.css';
@import '~datatables.net-responsive-bs4/css/responsive.bootstrap4.css';
@import '~datatables.net-rowgroup-bs4/css/rowGroup.bootstrap4.css';
@import '~datatables.net-rowreorder-bs4/css/rowReorder.bootstrap4.css';

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @ahmedx ,

    That list looks ok. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. 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

  • ahmedxahmedx Posts: 2Questions: 1Answers: 0

    http://live.datatables.net/vuroroja/1/edit

    Please check this bin, excel export works if i include the cdn from download builder but if including the npm packages i it won't work. Probably some dependencies missing, i'm not able to create an exact use case.

    Thank You

  • allanallan Posts: 63,482Questions: 1Answers: 10,467 Site admin

    Can you give me a link to your page that is using the require statements? That would let me identify what software is missing for the export to work.

    Allan

This discussion has been closed.