How do I hide or remove the title from the page I print and set the filename when I save the file into PDF or xps?
$('#report').dataTable( {
dom: 'Bfrtip',
buttons: [{
extend: 'print',
title: 'I want to hide this but use it as my filename when I save it.'
}]
});
('#report').dataTable( {
dom: 'Bfrtip',
buttons: [{
extend: 'print',
title: 'Filename here.',
customize: function ( win ) {
$(win.document.body).children("h1:first").remove();
}
}]
});