mattsc Posted April 29, 2021 Share Posted April 29, 2021 I searched around and didn't see an answer to the question of how to get the packing slip to automatically pull up the print dialog when the page opens. I realize this isn't an OSC specific issue, and I tried to figure this out on my own, but couldn't figure out how to make it happen... Basically, when I click on the Orders "Packing Slip" button, and the page loads, I want to automatically have the system print dialog open so i can just hit Print. I know it's a bit trivial as it's just a few keystorkes of mouse clicks to make happen, but it would be a time saver that irritates me every time I have to do it. what do I need to add to packingslip.php to make the page open the system print dialog for me? Link to comment Share on other sites More sharing options...
mattsc Posted April 29, 2021 Author Share Posted April 29, 2021 I tried adding <script type="text/javascript"> window.onload = function() { window.print(); } </script> to the document head, but it's not working. Link to comment Share on other sites More sharing options...
Fiber Posted April 30, 2021 Share Posted April 30, 2021 <body onload="window.print()"> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.