January 5, 200620 yr 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.
January 5, 200620 yr 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.
January 5, 200620 yr 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.
January 7, 200620 yr Author 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.
Create an account or sign in to comment