Re: R&OS Cezpdf reports question
| From: | Micah Stevens | Date: | Fri, 08 Jul 2005 20:54:49 +0000 |
| Subject: | Re: R&OS Cezpdf reports question | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-39917@lists.php.net to get a copy of this message | ||
Yes, I don't have the docs here in front of me, but you can set a transaction
for the PDF, create your date/table, and see if it ends up on the next page.
If it does, revert the transaction, issue a ezNewPage() to start a new page
so the date stays with the table, and then go as normal.
Does that make sense?
-Micah
On Friday 08 July 2005 12:30, Miretsky, Anya wrote:
> Hi,
>
> I was wondering if anyone has any experience with Cezpdf class to create
> pdf documents from php. I have a pdf report that prints date headings
> using the ezText method and then a table (using ezTable method) listing
> rows of data for that date. What I'm having trouble with is how to group
> the date text and the corresponding table rows together on one page. At
> the moment I have a situation where the date text prints at the bottom
> of a page, then one row from the corresponding table, then there is a
> page break and then the table rows resume on the next page, but without
> a date heading.
>
> Is there any way to group things and control when a page break occurs
> using Cezpdf?
>
>
> A.