I am working with an existing ASP.NET/C# website that has a new requirement: when a user prints a page from the website, each printed page must contain a footer with a set text. That is, if the HTML table will require two printed pages, each page must contain the footer.
I have read how to add to my CSS file for a print-only scenario, but what I haven’t found is how to do the pagination to know when to add in the footer.
The content that is being is printed is contained within an asp:Table.
Thanks in advance for your time and any assisitance you can provide.
Sorry to be the one to tell you this, but…
This can’t be done via html, css, javascript, or anything you will have control over.
If you need this type of functionality, you’re going to need to look at other options, such as a Word mail merge or Crystal reports, or SQL Server Reporting Services.
Edit
Sorry. I should have said:
“You can’t do this reliably for all browsers”. For consistent results (which is what we all want in most cases, isn’t it?) you’re going to need to look at other options, such as a Word mail merge or Crystal reports.