Here I used Print() of php to print a page but my problem is it is printing everything which contains on the page i.e., (unwanted data) also

And also it is depending on scroll bar to print the...