Hi Nicholas,

I tried duplicating your script. In FileMaker 10 Advanced. It seemed to work the way you intended it to. That stated, if I set Error Capture off and run the script, I get a filemaker dialog that tells me the print has been canceled and asks if I want to continue the script. If I select cancel here, the script is halted so I am left on the current/print layout.

If I hit continue the script completes returning me to the main layout in browse mode.

With error capture on, the script completes normally when the print is canceled and I am on the correct layout in browse mode.

If you have a copy of advanced try running this through the debugger and see where you end up.

Is it possible that a custom menu is in use that is modifying the Print command by running a script?

Hope this is helpful
Bruce Herbach

Nicholas Geti wrote:
If I cancel a print job using the "Continue/Cancel" options in the left "Status Area" panel, none of the script statement after "Print" execute. I would like to restore the previous layout.
Here is the script:
Go to Layout ("Summary Report A")
Sort(Restore)
Set Error Capture [ON]
Print Setup [(Restore, No dialog])
Enter Preview Mode [Pause]
Print[]
#If the user cancels the print, the script never gets here. I suspect the cancel has
#Exited the script. The program stays in Layout "Summary Report A".
Go to Layout ["Full List View"] Enter Browse Mode[]

Reply via email to