Hello, I'm using this code to print for generate report. But it print all on the windows including print button,main menu
navbar, and etc.So I really need help if you guys have better code to print output content only.

Code:
<input type="button" onClick="window.print()" value="Print The Report"/>