Can't print on Internet Explorer 11 after customizing the print?
Can't print on Internet Explorer 11 after customizing the print?
sanjeev-shrestha
Posts: 2Questions: 1Answers: 0
I am trying to concatenate couple of items before the table while printing. For some reason, this code works in chrome, firefox but not in IE11. Does any reason why it is not working for IE 11??
$('#example').DataTable( {
dom: 'Bfrtip',
buttons: [
{
extend: 'print',
customize: function ( win ) {
$(win.document.body)
.css( 'font-size', '10pt' )
.prepend("<p>Employee Name:" +$("#EmployeeName").val() +"</p>"
+ "<p>Weeekdays: " + ($('#Weekdays:checkbox:checked').length > 0 ? "Yes" : "No") +"</p>"
);
$(win.document.body).find( 'table' )
.addClass( 'compact' )
.css( 'font-size', 'inherit' );
}
}
]
} );
Thanks
Sanjeev
This discussion has been closed.