javascript - media print is not supported by following js code used to print table -


i want add css media format (add page-break-inside... )the page print, following code pops new window , prints the
table without supporting media print css.

here code got following link:

how use html print header , footer on every printed page of document?

<script>  function printdiv()  {     var divtoprint=document.getelementbyid('tabletoprint');     newwin= window.open("");     newwin.document.write(divtoprint.outerhtml);     newwin.print();     newwin.close();  } </script> 


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

python - PIL cannot identify image file for io.BytesIO object -

java - disabling a node without disable its children in javafx -