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.

Cancel Print

Featured Replies

Hi all,

How can I protect against someone canceling a print and getting stuck in a layout in preview mode. Let me explain.

I have a print script. The print dialog box comes up so the user can check the document about to be printed and choose a printer.

If the user hits cancel, a dialog box appears saying "Print has been canceled. do you wish to continue with this script". Well, if the user hits cancel (for whatever unknown reason) they are now stuck in the print layout in preview mode. This does not seem to have an error code attached to it, because I have tried error capture on and no luck. So how can I protect againstv this happening?

Thanks

Where in the script did you add the Set Error Capture [On] step?

  • Author

I set it first thing. Could I perhaps not have the proper error number. In FM help it said that error "1" is "User canceled action" is this correct?

It may be. I would not try to capture the error at all, though, if it is not necessary. Just use

Set Error Capture [On]

Print Setup [Restore; No dialog]

Print [ ]

Go to Layout [whatever]

The error dialog will be squelched.

  • Author

Yep that worked. I was too busy with the script debugger, waiting for it to capture it that I never let the script finish to see that it actually worked. Duh!

Thanks Queue

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.