Welcome! Log In Create A New Profile

Advanced

[WX22] Need to print Page number in Page Footer and End of document

Posted by sivakrith 
[WX22] Need to print Page number in Page Footer and End of document
April 18, 2020 04:38PM
Hello,


Need to print page number, in the report, in the format according to the choice by the user:
Choice 1: Page : 1
Choice 2: Page : 1 / 3

Tried with the available preset option(s)
Choice 1: Could print only 1 [ page number] and not the prefix Page :
Choice 2: Works fine

How to print the page number(s) ?

Other option could be to use calculated control. But don't have any idea what variables will give me the current page number and total no of pages and where to put the required code.

Any idea ?

Happiness Always
BKR Sivaprakash
Re: [WX22] Need to print Page number in Page Footer and End of document
April 19, 2020 01:09AM
In the report editor. Add a Pre-set control to your header or footer. If in End it will repeat the last page footer.
Re: [WX22] Need to print Page number in Page Footer and End of document
April 20, 2020 03:55AM
Preset control prints pagenumber alone, but my requirement is to print

Page : 1

which I couldn't make it. Any suggestion?

Happiness Always
BKR Sivaprakash
Re: [WX22] Need to print Page number in Page Footer and End of document
April 20, 2020 09:23AM
Got it.

Create two preset controls, and put this way,

Page : [PAGENUM]/[NBPAGES]
Page : [PAGENUM] // Same control as first and remove /[NBPAGES] in the second.

we could solve this issue.

Is there any way we could achieve the same using coding? With iPageNum() we could get the current page number, is there any function to get the total no. of pages of the report, ie. equivalent of [NBPAGES]?

Happiness Always
BKR Sivaprakash
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: