i have 2 frames in document,top frame displays html text and bottom frame displays report.i have written javascript function in top frame to print both frames, but its printing two frames in 2 different pages..i tried using javascript.is there any other way to do print both the frames in a single page(i mean using java...)