Printing a grid
-
Hi all iam printing a grid view by using the following java script. I want to use paging however this JS is only printing the first page. Any ideas on how can print all and use paging.
<script type="text/javascript"> function PrintReport() { var m = document.getElementById('menu'); m.style.display='none'; window.print(); m.style.display='block'; } </script>
-
Hi all iam printing a grid view by using the following java script. I want to use paging however this JS is only printing the first page. Any ideas on how can print all and use paging.
<script type="text/javascript"> function PrintReport() { var m = document.getElementById('menu'); m.style.display='none'; window.print(); m.style.display='block'; } </script>
samerh wrote:
window.print();
This is not printing the Gridview alone. it's printing the whole page. It will print whole contents of page. So if your grid view is showing only first page, you will get only that in print out. To get a complete print, you should show all data on the page.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
samerh wrote:
window.print();
This is not printing the Gridview alone. it's printing the whole page. It will print whole contents of page. So if your grid view is showing only first page, you will get only that in print out. To get a complete print, you should show all data on the page.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
Copy grid to a blank page and print from there
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
Copy grid to a blank page and print from there
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions