Sir, I am using a JavaScript Function to Print a Part of Page from a Button. Similarly I want to Convert same thing into PDF instead of Print from another Button either from JavaScript or any other process.Presently I have not tried any code.
To print the Function is: function printPartOfPage(elementId) { var printContent = document.getElementById(elementId); var windowUrl = 'about:blank'; var uniqueName = new Date(); var windowName = 'Print' + uniqueName.getTime(); var printWindow = window.open(windowUrl, windowName, 'left=50,top=0,width=750,height=950'); printWindow.document.write(printContent.innerHTML); printWindow.document.close(); printWindow.focus(); printWindow.print(); printWindow.close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)