in my project i want to generate print preview
for my jsp page .
if i clicks on hyper link print preview the form
preview has to be displayed
can any one help in this
thanks in advance
Hi kiran kumar!
You have two possibilities to do that.
You link to an other JSP file, that displays the content in "print friendly" mode.
If you have a valid CSS site, you can simply set an other stylesheet, that is responsible for displaying the page in print mode (and popup the print dialog). In CSS you can set the type of paper, page offset, watermarks, you can hide page elements and so on.
You must have three types of CSS:
1. the normal css
2. the print preview css (with the print button)
3. the print css (without the print button)
I hope that it helps you :).