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.

Printing multiple layouts from hosted files to arbitrary printer

Featured Replies

Configuration: FM Server 8 on Win2003, FMP 8 clients on XP and Win2000.

Script prints from 5 layouts.

Desired behavior: User clicks PRINT button, gets dialog to choose an arbitrary printer (one that their machine sees), script then goes to each layout and prints the current record.

I can't seem to find documentation on how the Print and Print Setup script steps differ when hosted on server vs. shared from a client. FileMaker Help doesn't appear to address this. Maybe there is no difference.

Question 1: In the above desired outcome, can the user choose an arbitrary printer that has not been specified (predicted and hard-coded) in the script print setup and have that choice persist when the script goes to different layouts to print? Is there any way to accomplish this?

Question 2: If NO to 1, one must specify all the possible printers in the script. What designation needs to match so that the script will choose the proper printer? Does the printer name on the develpment machine (where the script was written or edited) need to match the printer name on the client? If so, is it *sufficient* that the printer name match (if it is indeed the same printer)?

Thanks.

  • Author

So here is my solution (simplified):)

Goto Layout 1

Print Setup[Restore;No dialog] # portrait

Print[Restore] # current record, 1 page, network printer

Goto Layout 2

Print[No dialog]

Goto Layout 3

Print[No dialog]

Goto Layout 4

Print[No dialog]

Goto Layout 5

Print[No dialog]

The first Print[Restore] effectively suggests a printer. The user can change it if they want. Windows XP machines appear to recognize the specified network printer even if the printer name is slightly different on the development machine (how? by ip address? printer type?). The follow-on Print[No dialog]s keep that printer selection and other settings.

I guess it's a tall order to compare all the settings controlled by Print Setup[Restore] vs. Print[Restore] because it depends on your printer (driver) and operating system. But if someone made an exhaustive list it might be helpful. I find the FileMaker documentation on this to be pretty vague. It just refers to 'options', but these commands seem to control different yet overlapping sets of options. For example, Print Setup[Restore] does not let you specify Current Record or Records in Set. You can only do that with Print[Restore].

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.