HTML printing limit 1 page only
<p>I am printing an HTML table that varies in length. When printing table, it may print 1 page to 10 pages. Is there any way to limit printing to 1 page only using programming code? Yes, there is an option in the browser print dialog to set printing for 1 page only (this is last option to opt).</p>

<p>I'm printing the HTML using <code>window.print()</code> method.</p>