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. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php