PDA

View Full Version : How to get/call the Print preview window or link


yanira
11-07-2002, 02:09 PM
Hi everyone,

I would like to know if there is a way to create a button or link to 'call' the print preview window in IE rather than using the File/Print Preview?

Thank you.

Yanira

beetle
11-07-2002, 02:49 PM
<a href="javascript:window.print();">Print</a>

<input type="button" value="Print" onClick="window.print();" />

yanira
11-07-2002, 03:16 PM
beetle, thanks for your reply.

However... I am trying to find a way to get the 'Print Preview Window'...the one that is under File (File/Print Preview) not the default (File/Print).

If you know how to get that one, please let me know.

Thank you so much.

Yanira

beetle
11-07-2002, 03:47 PM
Ah, I see. This (http://msdn.microsoft.com/workshop/browser/hosting/printpreview/reference/reference.asp?frame=true) is the only thing I've seen that comes close to what you are looking for.

yanira
11-07-2002, 04:32 PM
Looking there I continue with the search...and I finally got it on this web site. (http://jguru.com/faq/view.jsp?EID=490852)

Hope it can be useful for others too :)

beetle
11-07-2002, 05:24 PM
Cool! Thanks for sharing! :D