I would need more information to give you a complete solution but it seems like you have records that aren't being shown until you click on the appropriate page number (or possibly a 'next'/'prev' page button).
There are a couple of potential solutions though. In all cases, if you want these extra paginated records to print, you will have to put them somewhere on the page before calling 'window.print()'.
Basically, let's say you have 10 pages, and each page is a <div>. The first <div> is the first page of records and it is shown by default. The additional 9 <div> elements are hidden. If you click to show page 2, the first <div> becomes hidden while the second <div> is now shown. Again, I don't know how you have your page set up so I have to take guesses until you supply more information, but if you have anything similar to this your solution is simple. You just need to set up a 'print.css' file which will contain CSS rules for when the page is printed. In this CSS file you can set those <div> elements to all be shown by default, which will allow all of the pages to show up on the printed page, but not your webpage.
A print.css file would be included like so:
<link href="/css/print.css" rel="stylesheet" media="print" type="text/css">
Setting the 'media' attribute to print means that the CSS is only used when printing.