我如何打印HTML页面。每页上的页眉和页脚 [英] how do i print HTML Page. Header and footer on each page
问题描述
我有动态生成的html页面。
我想打印这个页面,其中包含很多页面,但是当我使用window.print()时它打印成7,8页。
我的问题是每页需要页眉和页脚(A4大小)。
怎么样?我为每个页面设置页眉和页脚?
我使用带有C#的asp.net。
问题是数据是动态绑定的,当我打印它们时,打印会在多个页面上进行(即4或5页取决于数据)。
所以标题出现在第一页和最后一页的页脚上每页需要页眉和页脚。
请提供任何建议或替代方法来完成此任务。
I have html Page which is dynamically generated.
I want to print this page, which consists lot of pages, but when I used window.print() it's printing into 7, 8 pages.
My problem is I need Header and footer on each page (A4 size).
How can I set header and footer to each page?
I am using asp.net with C#.
problem is that data is binding dynamic, when I print them, the print goes on multiple pages (ie 4 or 5 pages depend on data).
So header come on first page and footer on last page I need header and footer on each page.
Please provide me any suggestion or alternate way to do this task.
推荐答案
我发现了相同类型的问题。
1. 我如何打印HTML表格。每页上的页眉和页脚 [ ^ ]。
2. 如何使用asp.net打印HTML表格。每页上的页眉和页脚 [ ^ ]。
I found the same type of questions.
1. how do i print HTML table. Header and footer on each page[^].
2. how do i print HTML table using asp.net. Header and footer on each page[^].
这篇关于我如何打印HTML页面。每页上的页眉和页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!