I have a HTML page where, I print the information regarding the data clicked. I also show the print preview of the page before printing. Ofcourse I use <body onload =print()>. I need to close the window immediately after it opens. I used the close() method but does not work. I cannot use the client side scripting as it does not wortk in the serverside. Any one has an Answer. Thanks in advance.