Jump 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.

Determining number of pages to be printed

Featured Replies

How can I determine the number of pages are going to printed before the printing starts? In other words, I want to insert into a document:

Page 1 of "total number of pages printing" , but I don't know ahead of time the total number of pages to be printed.

Thanks! crazy.gif" border="0

You can speed up the script by putting a Freeze Window step at the beginning.

Boy, I don't know how many times I wish that there was a "Status(LastPageNumber)" calculation in FileMaker!

Anyway, here's a real kludge that will get you what you want:

create a Global field [number] to capture the last page. Then create a script something like this:

Go to Layout [YourPrintLayout]

Enter Preview Mode

Go to Record/Request/Page [Last]

Set Field[ gLastPage, Status(CurrentPageNumber)]

Enter Browse Mode

You can then use the data from the [gLastPage] field for your last page number.

The down side of this is = if there are a lot of records, and/or if the layout has a lot of elements on it, this script can take a while to run, but it will get you the last page number.

[ April 12, 2001: Message edited by: dykstrl ]

Just to keep things in perspective, Filemaker can't possibly know how many pages there are going to be until it generates the pages for the found set which is exactly what you do when you go to preview mode and then to the last page. So, you can't really expect any other method or built-in function to be significantly faster.

Create an account or sign in to comment

Important Information

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

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.