|
-
Jul 5th, 2007, 09:56 AM
#1
Thread Starter
Hyperactive Member
Javascript+GridView+asp.net
Hi all
I want to know How can we define no of rows in a window.
but this script writes all rows of that gridView.
So How can we control no of rows so we can print as many no of record as we want. Is there any other function Please let me know.
Your help is highly appreciated, Thanks
<script language="javascript" type="text/javascript">
function CallPrint(strid)
{
var prtContent = document.getElementById(strid);
var strOldOne=prtContent.innerHTML;
var WinPrint = Window.open('','','letf=100,top=100,width=1000,height=1000,toolbar=0,scrollbars=1,status=0,resizable =1');
WinPrint.document.write(prtContent.outerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
WinPrint.close();
}
</script>
Using .NET 3.5 (VS 2008) And XP SP2

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|