Jump to content

Sending an image to a printer


beennn
 Share

Recommended Posts

Is it possible to print an image (send it to a users printer) that is not on the current page?

 

I have an application which uploads an image to a server, then a js function which currently opens the image alone in a new window, where I am then printing the image from. However instead of this, I would prefer the user stay on their current page, and have the print dialogue pop up there, rather than sending them to a new window with just an image.

 

Any help or advice is much appreciated.

Edited by beennn
Link to comment
Share on other sites

You can use CSS to use different stylesheets for web and print. So, you could have the image on the page but hidden with the web stylesheet, and the print stylesheet would hide everything else and only show the image.

Link to comment
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
 Share

×
×
  • Create New...