I need to print whole content of a div. Notice scroll in the div.
But when I use Window.print()
to print its content, it prints only the visible part on the screen. I want to print all 154 records in the grid, but it prints only 21 records.
Note: I don't want to open a new window.
EDIT:
javascript function()
{
1. Hide divs that you don't want to print
2. window.print()
3. show the divs you hide in step 1
}