Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6898 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a script that prints a layout without a dialog. But a print progress dialog still shows up (printing 1 of 10, 2 of 10, 3 of 10, etc.) and there is a Cancel button the user can click on to abort the job.

How can I trap for the user clicking the Cancel button from this dialog?

Thanks.

Posted

The user may stop printing with combination of keys too, but this is a safety feature of FM.

Why do you wish to disable that ?

BTW I think that what you asked for isn't possible.

Posted

Not sure if it would work but maybe it's the same behaviour as when the user cancels the print dialog before printing.

Check the error number immediately following the Print script step. If it is not 0 then you can trap for it.

Posted

Aha! Yes, I was able to trap for it by putting the the 'Get(LastError)' immediately after the print command as you suggest, Wlm Decorte. I had it after an 'End If' and that one line separation caused my problems. Thanks to all.

This topic is 6898 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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