I have a html page, from which a table needs to be sent to a printer. I am using window.print right now.. but that prints the whole page... while I need to print just the table.
You can give style display:none to all unwanted portions of the page. In that way you can print only table.
display:none
for ex: