c# - how do i print HTML table using asp.net. Header and footer on each page -
I have a htmltable that is dynamically generated. I want to print this table. That includes several pages when I used the window. Print () print it in 7, 8 pages. But my problem is that I need to have header and footer (A4 size) on every page, how can I set the header and footer on each page I am using with asp.net c #
I place the header and footer on .aspx but the problem is that when I print the data is dynamic, print many pages (i.e. 4 or 5 depends on page data) . The headers come to the first page and the footer on the last page requires the header and footer on each page
Please provide me with a suggestion or alternative way to do this.
I tried to do this work for him & lt; Style type = "text / css" & gt; @ Media print {thead {display: table-header-group; } Patfoot {display: table-footer-group; }} @ Media screen {thead {display: block; } Pat Pipe {Display: Block; }} & Lt; / Style & gt; & Lt; Body & gt; & Lt; Table & gt; & Lt; Thead & gt; & Lt; Tr & gt; & Lt; Td> Your title goes here & lt; / Td> & Lt; / Tr & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; TD & gt; The page body here - as long as it & lt; / Td> & Lt; / Tr & gt; & Lt; / Tbody & gt; & Lt; Tfoot & gt; & Lt; Tr & gt; & Lt; Td> Your clergyman goes here & lt; / Td> & Lt; / Tr & gt; & Lt; / Tfoot & gt; & Lt; / Table & gt; & Lt; / Body & gt;
Comments
Post a Comment