n Filemaker reporting the pages are not numbered out of total by default. For instance, if we want to print 1 of 4, 2 of 4 …. we need to follow the steps given below:
i) Create a global field in Global table.
e.g: DASH::gTotalPreviewPages (Number, global indexed)
ii) The script you are running for Printing to print a report.Set that global to null in starting.
iii) Then in the same above Print script after the step you will go for Enter Preview mode and before Perform Print step, do the below steps
Enter Preview Mode
Print SetUp[Restore;No dialog]
Go to Record/Request/Page [last]
Set Field [DASH::gTotalPreviewPages;Get ( PageNumber )]
Go to Record/Request/Page [First]
Adjust Window [Resize to Fit]
iv) In print page design mode use below highlighted code in footer
Page: ## of <<DASH::gTotalPreviewPages>>
it will return as Page: 1 of 4
then Page 2 of 4 and so on if total no of pages are 4