Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

total page number

Featured Replies

Hi All

I am trying to get a field to calculate the total number of pages that will be printed.

Example

page 1 of 6

I got the first field (1)to change as the page chnages but I can not figure out how to get the next field (6) to tell how many pages that are to be printed.

Thanks

Lionel

This Topic comes up from time to time. I did a Search for [color:blue]+number +pages (include the Pluses) and it returned a lot of hits. Here is a recent one Link that will get you started.

Lee

  • Author

thanks lee

Lee,

I tried some examples from other suggested links and come with the total number of pages of all records in my report instead of showing the total number of pages included within the one report I want to print. Some of my reports extend to 4 pages, others extend past 7 pages. It depends on the length of each report.

Example, I want my footer to show (Page 1 of 5), when printed.

I tried adding a global "gNumberPages" field in my report script B)

Enter Preview Mode

Go to Record/Request/Page [Last]

Set Field [gNumberPages ; get(PageNumber)]

Print

If you could solve this problem it would make things much easier for me.

Thank You,

Steve

Hi Steve,

In the Search I provided, there were a number of examples. I noticed that a lot of the examples had the [color:blue]Find All Records step in them, but did not provide for a search. This is an extra step that isn't needed if you have already done a find to get your [color:blue]Found Set. One of the example files that you should look at is the one that [color:orange]bcooney Pointed to here, or go directly to the file Database Pros Site

HTH

Lee

Edited by Guest

  • Author

Lee

Thanks

I did used that DataBase Pro example and it worked perfectly

Thanks again for the help

Lionel

Edited by Guest

Lee,

Thank you for your help, it worked!

The find request was key,

I was unsure of how to format the find request that you described so I performed a find on the serial number of my report and proceeded as directed.

How do I include a find request in this script: (find current record), that gives me my found set?

Steve

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.