Highlighted

Reset the page number

Avatar

Guest

12-08-2008

Hi,



I am trying to reset the page number by opening a new master page with

in the object-pagination the 'Start At' field value 1 but it doesn't

seem to work if it isn't the first page of the document.

Is there any other way to do this? Can I also reset the

total-page-counter?



Many thanks,



Gert

Replies

Highlighted

pguerett

12-08-2008

There does not seem to be a way to do this at this time. I talked to the Product Manager and had them open an enhancement request for this.
Highlighted

radzmar

MVP

19-08-2008

I'm using following script in the layout:ready event to change the page numbers in my forms.



exsample: Page 13 in my form shows page number 1.



this.rawValue = xfa.layout.sheet(this) - 11
Highlighted

Avatar

Guest

22-08-2008

Hi Gert,

You can check the page number if it is bigger than your desired value you can reset the variable value back by script as:



//After page 2, it starts from scratch

if(xfa.layout.page(this) > 2)

this.rawValue = xfa.layout.page(this) - 2;

else

this.rawValue = xfa.layout.page(this);