In one of my applications i am using jsp for all reporting. But the problem here is that the window.print() command will print everything on screen.
Is it possible to print only a part of the scrren, say the data displayed in a table?

Animesh Srivastava

If you are willing to put in some more efforts than a mere window.print() you may like to check out Velocity and FOP from Apache guys.. they have done a really great job, you can make a pdf file out of your html that is displayed on the screen, leave out some objects,.. add more objects,.. do formatting, coloring, add images.. almost anything.. it offers a great deal of control as to what you want to print..

the downside is of course a bit of more programming.. but then thats what u give up for greater control.. :)