I have a scrollable gridview to be printed. There are 3,4 dropdown list also. I also need to get the values/Text of that dropdown to be displayed on the printing page. Datas inside the gridview is displayed according to the filter happening on that dropdown list. I have written some javascript code for printing option but it prints only the gridview values. I need to add the dropdown values too.
- <script type]="text/javascript">
- function PrintPanel() {
- var panel = document.getElementById("<%=Panel1.ClientID %>");
- var printWindow = window.open('', '', 'height=750,width=1100');
- printWindow.document.write('<html><head><title>Grdview_print</title>');
- printWindow.document.write('</head><body >');
- printWindow.document.write(panel.innerHTML);
- printWindow.document.write('</body></html>');
- printWindow.document.close();
- setTimeout(function () {
- printWindow.print();
- }, 500);
- return false;
- }
- </script>