Pagination

<< Click to Display Table of Contents >>

Navigation:  Delphi HTML Report Library >

Pagination

To control pagination use CSS page-break-before, page-break-after and page-break-inside properties.

These properties are valid only for block elements.

For example, if we want to start new page before each h2 element:

h2 {page-break-before: always}

To insert a page break at a random location there is special element defined in standard report styles: pagebreak.

To start a new page just put it anywhere.

<pagebreak/>

pagebreak tag can also contain page orientation attribute:

<pagebreak orientation="landscape"/>