Posted on: 6/4/2014 8:41:16 PM | Views : 361

my application if user  wants to print specific data .It prints specific content  but  problem with textboxes with multiline data .Its not printing complete data whatever user  enter  in  textbox.
below is the code
<script> function printDiv(divID) { //Get the HTML of div var divElements = document.getElementById(divID).innerHTML; //Get the HTML of whole page var oldPage = document.body.innerHTML; //Reset the page's HTML with div's HTML only document.body.innerHTML = "<html><head><title>Timesheet Details</title></head><body>" + divElements + "</body>"; //Print Page window.print(); //Restore orignal HTML document.body.innerHTML = oldPage; ...

Go to the complete details ...