1
I have a form
that generates a list I need to print.
That list, sometimes I will print only a few pages, so on each page, I need to have some data:
- page number
- balance from the previous page
- caption header
- records
- final balance (last page)
Example:
In research, I found the DOMPDF to print of html to PDF, but I don’t know if it would be the best option, and if it was, how does the break.
I would at least like a direction where to start, what is possible or not to do.
res, is it possible not to use CSS? It works inline
page-break-after: always;
?– rbz
I don’t know otherwise than CSS, otherwise it would have to be programmatically, within a FOR or something like, kind of "manual".
– res
Yes, it works online, I added an executable example, that example in an html of his, when trying to print in firefox left the table in one page and div in another
– res
So, but I’ll loop it. I’ll have to do a record counter and do an if to add the break per class in the tag. If I had something simpler, I wouldn’t even need the CSS to break. I’ll go into it. But thanks for now!
– rbz
I did some tests and did not understand some things. Why use the
THEAD, TBODY
whether I will break into several tables my records<table style="page-break-after: always">
? In test I did, the break does not work if not inserted directly into the<table>
... that’s right?– rbz