You can use frame.print command of JavaScript.
Let fraReport be the name of the form where your report appears. You can put the following script in the onClick event of print button
window.parent.frames['fraReport'].print()
When the print button is in a frame in the same level of fraReport.
If print button is not in a frame in the same level as fraReport(fraReport is an IFrame or print button is already in the parent frame of fraReport), then you can use
window.frames['fraReport'].print()
|