Components used: jquery Print plugin PrintArea, interested can be studied.
Use the method to skip over, here will explain how to implement printing multi-page is can be paged.
Now there are two ways to think:
1, according to the specific printer model and the type of paper used, and then use JS to calculate how high each page, according to the height of each piece of paper to carry out the appropriate increase or decrease height. (This way the disadvantage is only for the single-type paper, the calculation is very cumbersome, to a lot of addition and subtraction-_-);).
Refer to Page A4 paper height: http://www.jb51.net/office/word/67360.html
2, in the above a way of thinking, try to find can automatically calculate height and pagination, the results found a CSS properties: Page-break-after, incredibly a CSS can be done (no shortcomings, suitable for a variety of paper, automatic calculation, do not need to complicate JS plus subtraction).
Here's a specific explanation for this CSS: http://www.w3school.com.cn/cssref/pr_print_page-break-after.asp
Interested or will realize this function can go to study, hope to bring help to everyone, less detours.
ASP. NET for online printing, jquery print plugin PrintArea for automatic paging