Jump to content
mattsc

How to get packing slip to pull up print dialog on open

Recommended Posts

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?

Share this post


Link to post
Share on other sites

I tried adding 

<script type="text/javascript"> window.onload = function() { window.print(); } </script>

to the document head, but it's not working.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×