MarkSLC Posted January 5, 2006 Posted January 5, 2006 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.
Raybaudi Posted January 5, 2006 Posted January 5, 2006 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.
Wim Decorte Posted January 5, 2006 Posted January 5, 2006 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.
Zero Tolerence Posted January 5, 2006 Posted January 5, 2006 Set Error capture on and Get last error doesn't work?
MarkSLC Posted January 7, 2006 Author Posted January 7, 2006 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now