rae_rae
asked on
page-break-after works but I need headers to repeat
I have a div of class type "invoices"...
in my CSS I have: body .invoices { page-break-after: always; }
This creates the needed page break I wanted.
I have some other information which is stored in divs throughout the pages that are broken up. What I need to know is if there is a way to tell the browser to repeat any of this information...on the next page so that the people reviewing the printed form can tell what page goes with what other pages.
in my CSS I have: body .invoices { page-break-after: always; }
This creates the needed page break I wanted.
I have some other information which is stored in divs throughout the pages that are broken up. What I need to know is if there is a way to tell the browser to repeat any of this information...on the next page so that the people reviewing the printed form can tell what page goes with what other pages.
Hi, rae_rae: Yes, of course it is possible to tell the browser lots of things in PHP - it just generates HTML statements and the browser renders the HTML. But it looks like what you posted there is something different, not HTML?
ASKER
You must be referring to my last comment which is simply an idea for our experts to review as a possible solution. I don't know if those registry settings might be edited to accomplish what I want but I'm suspecting not since what I need is dynamic in nature.
And yes, I agree that php has a wide array of capabilities. I've been developing php applications professionally since 2006. I've never had to worry about pagination or repeating header information before though. So, you may know something I don't about this area...which brings me to the site hoping for a solution.
I'll tell you that the data is an invoice and it becomes very crucial to have some of the invoice headers repeat wherever the printer decides to insert a page break.
And yes, I agree that php has a wide array of capabilities. I've been developing php applications professionally since 2006. I've never had to worry about pagination or repeating header information before though. So, you may know something I don't about this area...which brings me to the site hoping for a solution.
I'll tell you that the data is an invoice and it becomes very crucial to have some of the invoice headers repeat wherever the printer decides to insert a page break.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok Ray, I'll try this solution. I have already gotten fpdf in the system and it's ready. I have never used pdf generation software before but I'm sure with patience I can get it up and running.
Thanks for your insight.
rae_rae
Thanks for your insight.
rae_rae
Thanks for the points. Regarding this:
"I'm sure with patience I can get it up and running."
Yes, have patience, at least at first - I found that my success using FPDF was slow at first. It is almost a "pixel at a time" sort of thing when you start out, but once you get the hang of it, you will be able to charge ahead. I store PDF files on my server for the client to download and print - it has worked out very well.
Cheers, ~Ray
"I'm sure with patience I can get it up and running."
Yes, have patience, at least at first - I found that my success using FPDF was slow at first. It is almost a "pixel at a time" sort of thing when you start out, but once you get the hang of it, you will be able to charge ahead. I store PDF files on my server for the client to download and print - it has worked out very well.
Cheers, ~Ray
ASKER
"header"="&w&bPage &p of &P"
"footer"="&u&b&d"
[HKEY_USERS\S-1-5-21-32766
"header"="&w&bPage &p of &P"
"footer"="&u&b&d"
These are the default values for printing. Maybe it's possible to have the &p of &P reset for sets that belong together? This is just an idea...which may or may not actually be what I'm looking for.