How to get the total number of pages in RML template? -


there a tag in rml, <pagenumber>, displays the current page number.

but how can total number of pages of generated pdf document?

i add pagination "page 1/2", "page 2/2":

page <pagenumber /> / <pagecount> 

but <pagecount> tag doesn't exist.

after spending considerable amount of time, found this:

at end of <story>, add:

<namedstring id="lastpage"><pagenumber/></namedstring> 

to display pagination, use:

page <pagenumber /> / <getname id="lastpage" default="0" /> 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -