You can easily do this using CSS (cascadeding styles sheets).
Here's the code:
This goes in between the <head></head> tags in your html page
-----------------------------------------------------------------------------
<style type="text/css">
a { color:red; text-decoration:none;}
.title { font-family:arial,font-size:16pt; font-weight:bold;color:black}
.text { font-family:arial,font-size:10pt; color:white}
.tabletext { color:black;font-family:arial;font-size:10pt }
@media print{
body{ background-color:#FFFFFF; color:#000000 }
#buttons{ display:none;}
#content { display:none; }
}
</style>
-----------------------------------------------------------------------------
then all you do is put an id="buttons" or whatever you specify as the name (but make sure its the same as the ones you specified in the code above), anyways put that in the table column or row or where ever, in div tags, span tags. Then when you print preview notice stuff is missing or is changed to whatever you specified within the CSS code. Bam problem solved.
I have the file located on my server that demonstrates this.
Download it and do a print preview of it. it is located here
http://www.hybridart.com/tutorials/CSS_PrinterFriendlyPages.htmlnotice the buttons are gone and so is all my instructions. only thing left in the print preview is the code and the contact us table form.
enjoy, and if you have questions ask me!
also visit my website at
http://www.hybridart.com-brandon
[
www.hybridart.com ]