here i have some of the tables , i need to print this html page, with page number,the table content may differ dynamically, i unable to print the page number dynamically ,I have tried so many ways but i unable to find solution yet. I need to Print page Number like "Page no 2/6"
Below is my html sample
<style>
.page {
page-break-before:always;
}
@page {
size: A4;
margin: 0;
}
@media print {
@page {
size: A4;
margin: 0;
}
}
</style>
<table class='page'>
<tr><td></td></tr>....
</table>
<table class='page'>
<tr><td></td></tr>....
</table>
<table class='page'>
<tr><td></td></tr>....
</table>
<table class='page'>
<tr><td></td></tr>....
</table >
<script>
window.print();
</script>