javascript - Print button not print images but print text document -


i use following java script print button.

    <script type="text/javascript">         function printform()     {          var printcontent = document.getelementbyid('<%= panel1.clientid %>');          var windowurl = 'about:blank';          var uniquename = new date();          var windowname = 'print' + uniquename.gettime();          var printwindow = window.open(windowurl, windowname, 'left=50000,top=50000,width=0,height=0');           printwindow.document.write(printcontent.innerhtml);          printwindow.document.close();          printwindow.focus();          printwindow.print();          printwindow.close();     }  </script> 

the above code not print images print text document.what can solve problem.plz provide me solution.

in case if find difficult see background images printed on document, make sure have option set in ie, if use ie.

enter image description here


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -