One way to accomplish this would be through the usee of css styles such that you have one style sheet for the screen and one for the printer, like so:
<link href="CSS/Print.css" rel="stylesheet" type="text/css" media="print" />
<link href="CSS/Screen.css" rel="stylesheet" type="text/css" media="screen" />
The Print.css hides all of the elements that you don't want to print and, conversely, may expose previously hidden elements that you do want to print. Thus, when the page is printed only those items that should be printed will be.
Note that there ar ealso other ways to accomplish what you want but this should get you started.