Need to call csv button from my custom button.
dataTables export buttons is by default enriched with signature classes like .buttons-excel, .buttons-pdf, .buttons-csv and so on. Take advantage of that :
.buttons-excel
.buttons-pdf
.buttons-csv
$('#ExportReporttoExcel').on('click', function() { $('.buttons-excel').click() });