Hey Guys, so this question is actually in reference to a PHP script I have written to automatically generate invoices for a company. The problem though, is more of an HTML CSS thing,so I figured I would post it here.
So the invoice format, is basically a collection of short paragraphs, with date on one side, then the amount of time billed and the dollar amount appearing on the right hand side of the paragraph. Each paragraph is a description of the services rendered. There is then a margin (or padding) between each entry. So the problem is this... if the invoice ends up being more than 1 page long (they generally are), there is no way to predict where the page break will occur (it could even be in the middle of a line). Can anyone think of a solution so I can actually print these invoices off, and make them look professional?
This formatting has be racking my brain and I can't figure out a solution. Nothing that I have in my HTML\CSS "toolbox" can help me solve this problem. To work around it, I have even considered outputting the invoice as a CSV, opening it in Excel and printing it there.
So the invoice format, is basically a collection of short paragraphs, with date on one side, then the amount of time billed and the dollar amount appearing on the right hand side of the paragraph. Each paragraph is a description of the services rendered. There is then a margin (or padding) between each entry. So the problem is this... if the invoice ends up being more than 1 page long (they generally are), there is no way to predict where the page break will occur (it could even be in the middle of a line). Can anyone think of a solution so I can actually print these invoices off, and make them look professional?
This formatting has be racking my brain and I can't figure out a solution. Nothing that I have in my HTML\CSS "toolbox" can help me solve this problem. To work around it, I have even considered outputting the invoice as a CSV, opening it in Excel and printing it there.
Comment