im using datatables for my front end requirements and it works good except im having an issue in exporting stuff e.g. copy, csv, excel and pdf, only print is working. Any ideas, clues, thoughts, help, suggestions, recommendation? I'm using version 1.10.6
I did link all the necessary libraries e.g. datatables js, css and datatables tools js. Below is my code for activating it on my script
$('#cigptable').DataTable( {
"pagingType": "full_numbers",
"dom": 'T<"clear">lfrtip',
"tableTools": {
"sSwfPath": "../../../plugins/datatables/extensions/TableTools/swf/copy_csv_xls_pdf.swf"
},
"oLanguage": {
"oPaginate": {
"sPrevious": '<i class="ion-ios-arrow-left"></i>',
"sNext": '<i class="ion-ios-arrow-right"></i>'
}
}
});
See sSwfPath option documentation, below is an excerpt:
Most likely the problem is because of the incorrect path to the
copy_csv_xls_pdf.swf
file. Try to use CDN link instead:Quoting Allan Jardine, developer of DataTables: