Page 1 of 1

Page Numbers

Posted: 29 Jan 2015, 09:06
by doinktheclown
Hi

I am wanting to put the page number onto my invoices, but can't seem to find the right way to do it.

Specifically I want 'Page X of Y'.

Could anyone point me in the right direction?

Thanks in advance

Re: Page Numbers

Posted: 29 Jan 2015, 12:34
by brucedenney
an expression of

Code: Select all

"Page "+REPORT.PAGE+" of "+REPORT.PAGES
would do the job neatly and align thing well, you could also just put the fields in the layout

Re: Page Numbers

Posted: 29 Jan 2015, 13:56
by doinktheclown
Thanks for that.

However, I've tried this but it is giving the same page number for every page. For example every page of an invoice would say "Page 4 of 4" as opposed to "Page 1 of 4", "Page 2 of 4" etc.

Do you happen to know a way around this?

Thank you

Re: Page Numbers

Posted: 29 Jan 2015, 15:07
by brucedenney
If you do it by dropping the variables onto the report manually, they work fine, but as soon as you put both of them in one expression they have the same value

My guess is that PAGES is an aggregated value of PAGE and so cannot exist in the same expression as itself in it's non aggregated form.

It is not as nice as one would like but it is perfectly functional solution.