hi dear, I have a website & want to add a print option there. Basically i have a form to fill a user as universities have admission form & user fill that form & preview it & take out print. Any one can share with me... I am using print.window method to do this but fail to so so. Any effort will be appreciated..........
yes I am using this <INPUT TYPE="button" onClick="window.print()"> when we press the button it prompt dialog box of printer............I wish to add a preview button manually to take a preview of page before priting
Do you just want to show the page with a print stylesheet? You can do that by opening a copy in an iframe or new window. But showing the print preview dialog with Javascript is hard. I found code that works in IE but fails in other browsers because it uses ActiveX http://hernk.wordpress.com/2007/04/13/how-javascript-call-print-preview/
Thanks for reply wht is the best solution for this problem. what u suggest to do this.. I will try this
I think the best solution is a normal print link. Many printers automatically show the preview window so there is no need for a preview link.