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 -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -