Table printing spread across pages_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:19:32
Original
2071 people have browsed it

Form cross-page web

Generate a dynamic form in WEB. Call IE's built-in print control to print. Since the length of the table content is not fixed, line breaks occur when a cross-page occurs (one line of content is broken, half of it is on the previous page, and half is on the next page). How can we achieve automatic line wrapping across pages like printing tables in Word? That is to say, if the last row of the previous page cannot be displayed, the row will be automatically moved to the next page instead of being disconnected. Please help me, brothers and sisters, I am very grateful again...

Reply to the discussion (solution)

This generally requires you to dismantle the watch yourself and disassemble it into Multiple tables, separated by page feed characters
It is best to split multiple tables into multiple pages and add table headers

This usually requires you to split the table yourself into multiple tables, separated by page feed characters Separate
Multiple pages are best split into multiple tables with table headers
The table is a gridview table in asp, how to paginate this

Pay attention to the paper size you print. Each type has Fixed size. It is not difficult to change the page if you control the height.

Quoting the reply from fzfei2 on the 1st floor: This generally requires you to split the table yourself into multiple tables, separated by page breaks
It is best to add headers to multiple pages if they are split into multiple tables.
The table is a gridview table in ASP. How to paginate this
Paging the SQL statement of the original result set is the same as the commonly used table data paging

The poster said The following situation will occur with the printing function that comes with IE:



If you are willing to pay, you can consider using jatoolsPrinter to solve this problem, as shown below:

The table printing function of jatoolsPrinter can solve the problem of page breakage in tables, but other controls do not seem to be able to do this.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template