Link to home
Start Free TrialLog in
Avatar of Chris Andrews
Chris AndrewsFlag for United States of America

asked on

print image file from page link?

This tutorial about printing from javascript:

http://nice-tutorials.blogspot.com/2009/05/print-using-javascript.html

gave me an idea.

He talks about printing a hidden image on a page by creating a print preview window and letting the user print it out.  I don't understand all of it, but I like the idea of sending an image straight to print preview.

I have a small image on my web page, and the user needs to be able to print a full size copy.  

It would be nice to have a set up where the user clicks on the image, and the print preview comes up displaying a different image file (a larger version of what's on the page).

So something like:

<A <!-- javascript here to pop up print preview of full-size.jpg -->><IMG SRC="small-size.jpg"></A>

Is it possible to go straight to print preview like that, and if so, can you write it?

Thank you,   Chris
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Chris Andrews

ASKER

mplungjan,

I'm very sorry, I don't know why I didn't get back and get these points to you earlier.  
Np. Thanks