Javascript Print Page Area
JavaScript Print Page Area prints the certain portion from you page.
Instead of printing the whole page , this lets you to print only the specified area form the page.
Define the section for print within the page And call the print_sample_report() function to print. Try Demo
You can define the print section with an id.
Example:
<div id=” print_area” ><!– Print content goes here.. –></div> This is the print section within you HTML code
Now call DoPrintableSections function to print.
var e = document.getElementById(“print_area”); // place the id of you print section as paratmer
function DoPrintableSections(wdth,hght,stylesheets,imgsdir,heading)
{
//center(‘overlayss’,'mybox’); //load lightbix
CreateVirtualCarrier1(“ContentCarrier”);
var e = document.getElementById(“print_area”);
var content = “”;
var cc = document.getElementById(“ContentCarrier”);
cc.innerHTML = e.innerHTML;
content = cc.innerHTML;
OpenPreviewPage(content,wdth,’auto’,stylesheets,imgsdir,heading);
cc.innerHTML=”";
}



Great article…i was looking for same stuff from long time. Keep it up my fren…
oh! great solution
really i’ve got a great help from this solution.l
anybody who have printing problem they can easily use this script and solve the problem
As for as JavaScript Print Page Area is concern, this article is really a grate solution. Any one who really need this can use it with little less effort.
Thanks to Rajesh Tandukar for posting this grate solution.
Thank you all who have used this script in there websites.And thanks for your comments.
Thanks Rajesh for the good script
I used it with great effect
Very good sharing this.