You can use a <block> element to wrap the record and use the keep-together 
attribute like this:

<fo:block keep-together="always">
Name
IC
Phone
</fo:block>


On Mar 28, 2012, at 10:50 AM, Foo Shyn Chung wrote:

> Hi all,
> 
> Sorry if this sounds noob as this is the first time i'm generating a report
> via the fo.ftl route.
> 
> I'd managed to create the report and generated it to a pdf file, however i
> notice that, when the page break, it actually breaks between the data
> within a row, rather than breaking gracefully (as in, the next page will
> starts will a new record).
> 
> Example:
> 
> The record is something like:
> 
> 1.  Name: A
>     IC: 39043480984
>     Phone No: 02-343434
> 
> 
> at the end of the page, the row would be dissected into 2 parts, with the
> 2nd part at the next page:
> 
> 1. Name: J
>    IC: 0983403804834
> 
> 
> (start of next page)
>    Phone No: 03-34340938
> 
> 
> Any method that i can do to make sure that the page will break at the
> correct place?
> 
> Thanx
> FooShyn

Reply via email to