I have POS software in Which Receipt is print with 3 to 4 step. this is long method. i want to Receipt print without showing window print dialog box. direct print to the printer i am using php CodeIgniter Web Framework. after showing receipt on print button the function is following
function PrintTicket() {
$('.modal-body').removeAttr('id');
window.print();
$('.modal-body').attr('id', 'modal-body');
}
<button type="button" class="btn btn-add hiddenpr" onclick="PrintTicket()"><?=label("print");?></button>