Giorgio_Prossen@adobeforums.com wrote:
> I used a message box in the docReady event of form and body subform and i didn't see any change of numPages value: this number has correct value only in docClose event.
>
> My goal is, depending on current page number, to use different header and footer.
> Master page contains three content area: one for header, one for body and one for footer.
> I have many subforms: more for headers and footers and one for data to display.
>
> Bye
> Giorgio Prossen
Giorgio,
Try the layout:ready event. This event is triggered after the Layout DOM is created. The Layout
DOM contains information regarding pagination, such as page numbers, headers, footers, etc. To get
the number of pages, you should use xfa.layout.pageCount() rather than xfa.host.numPages.
--
Justin Klei
Cardinal Solutions Group
www.cardinalsolutions.com