how to print my web application?

i made different types of reports in jsp.i want to print the particular report which is opened.i also have a print button,i can select different type of users from drop down list to see the report of selected user.report contain which different types of activities.i have to print opened report.how can i print particular opened report.

help me regarding this problem

thanxs in advance

[404 byte] By [FaiyazAziza] at [2007-11-27 11:23:51]
# 1

hi,

in your current window...

create a link and call this method

function printfile ()

{

window.print ();

}

or

<a href="javascript:window.print()" > print </a>

drvijayy2k2a at 2007-7-29 15:54:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...