Hi,
I am using the infragistic utrawebgrid.I want to print it .if i use the simple window.print function then it is printing good.
But my requirement is to show the grid in a new window and then print.For this i am using the javascript function as below
function CallPrintGrid(divGrid) { var prtContent = document.getElementById(divGrid); var WinPrint = window.open('','','letf=0,top=0,width=800px,height=400px,toolbar=0,scrollbars=0,status=0'); WinPrint.document.write(prtContent.innerHTML); WinPrint.document.close(); WinPrint.focus(); WinPrint.print(); WinPrint.close(); }
The problem is i am not able to get the grid border lines while printing.I have set the displaylayout.readonly property to PrintingFriendly.
Plz help its argent
Thanks & Regards
Gitanjali
I figured out that the the following property solves this problem for me:
grid.DisplayLayout.BorderCollapseDefault = BorderCollapse.Separate;
If you also like to have grayed columns or rows, set the IE option under Advanced print background and images to be enabled.
Hope it helps
Markus
Hi Markus,
I have set the property but there is no difference at all.The look is ok at the main page but it is not showing the border in the printing window.
I have also set the IE property .