I have an html page i want to print a portion of this html page, I know a javascript function to print a page,
onClick=\"javascript:window.print(); return fa
You can apply a CSS style to hide everything but what you want printed for media="print" using Javascript.
media="print"
You can also load the page in another window or a [hidden] and print that.