Skip to main content
Inspiring
September 26, 2013
Question

Set page break after x records

  • September 26, 2013
  • 1 reply
  • 500 views

I have a report the prints user names with checkboxes to the right and a place to handwrite data on the report.  The height of the data in each row is always the same so I'd always want a page break after the same number of records.

When using a pdf cfdocumnet is there a way to insert a page break after x records have printed?  The records are coming from a query.

Thanks

    This topic has been closed for replies.

    1 reply

    EddieLotter
    Inspiring
    September 26, 2013

    There are two ways I can think of, off the top of my head, perhaps others will chime in with more ways.

    The first is to use cfDocumentSection in a loop. Inside the cfDocumentSection have a sub-loop that iterates the desired number of rows. cfDocumentSection automatically creates a page break.

    The second way is to use cfDocumentItem with type="pagebreak" at the point where you want a page break.

    I hope this helps.