Hi,
My requirement is to print the radGrid data only and my grid is having horizontal scroll bar. I am using following script to print
function CallPrint(strid)
{
var prtContent = document.getElementById(strid);
var WinPrint = window.open('','','letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
WinPrint.document.write(prtContent.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
WinPrint.close();
prtContent.innerHTML=strOldOne;
return false;
}
and on print button client click I am calling the following function
OnClientClick="javascript:return CallPrint('printGrid');"
where printGrid is Div id which contains the grid.
Now my problem is I am able to print only that data which I can see initially (not scrolling) on browser.
I am unable to print the whole data .
what might be the solution for this, is radgrid is having any print functionality ?
Thanks,
My requirement is to print the radGrid data only and my grid is having horizontal scroll bar. I am using following script to print
function CallPrint(strid)
{
var prtContent = document.getElementById(strid);
var WinPrint = window.open('','','letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
WinPrint.document.write(prtContent.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
WinPrint.close();
prtContent.innerHTML=strOldOne;
return false;
}
and on print button client click I am calling the following function
OnClientClick="javascript:return CallPrint('printGrid');"
where printGrid is Div id which contains the grid.
Now my problem is I am able to print only that data which I can see initially (not scrolling) on browser.
I am unable to print the whole data .
what might be the solution for this, is radgrid is having any print functionality ?
Thanks,