need help for print the webpage content
-
HI all, I need a help for printing the content of the page displayed in the webpage using vb.net Can anybody help I will be very very pleased if i get answer
Printing on the client? You can just get them to hit the print button in the browser... Also, you can set css styles with a media of 'print' that will control how your page is displaying the print preview.
-
HI all, I need a help for printing the content of the page displayed in the webpage using vb.net Can anybody help I will be very very pleased if i get answer
I hope the following article may help u out Ever wanted to print a DataGrid alone from an ASP.NET Web page? Put an tag inside the tag does the trick. Here are the steps involved: 1. Enclose the tag inside the
tag. 2. Write a JavaScript function which takes care of printing the content from
tag. Here's an example: 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; }
..... ..... .....
Everything Is Possible!