couldn't change ny image size on print in datatable

couldn't change ny image size on print in datatable

n0nen0ne Posts: 1Questions: 1Answers: 0

this is data

 ],
                    columns       : [
                        {data: 'emp_id'},
                        {data: 'group'},
            {data: 'emp_profile_pic'},
                        {data: 'emp_code'},
                        {data: 'name'},

this is my print window:

$("body").on("click", ".print_qr", function () {
                    var t = table.row($(this).closest('tr')).data();
                    var ttt = '' +
                        '<div style="display:inline-flex;"><img style="display:inline" src="{{ Storage::url("qr-code/") }}' + t['emp_code'] + '.png" style="width:100px;" />' +
                        '<span style="margin-top: 12%;"></span></div>';
                    var newWin = window.open('', 'Print-Window');
                    newWin.document.open();
                    newWin.document.write('<html><body>' + ttt + '<p style="margin-top: 1%; margin-left: 1%;">Name : ' + t['name'] + '</p><p style="margin-top: 1%; margin-left: 1%;">Dept : ' + t['department'] + '</p><p style="margin-top: 1%; margin-left: 1%;"> Contractor : ' + t['contractor'] + '</p>
`<div style="height: 5em; width: 5em;"><p style="width:10% !important; margin-top: 1%; margin-left: 40px;">' + t['emp_profile_pic'] + '</p>`</div></body></html>');
                    //newWin.document.close();
                    newWin.focus();
                    setTimeout(function () {
                        newWin.print();
                      // newWin.close();
                    }, 150);
                });

i tried to increase size of print image(t['emp_profile_pic']) but i couldnt , someone help me out!

This discussion has been closed.