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

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

Recommended Posts

Posted

I have a printing script that directs the user to one of three printing layouts (depending upon their response to the "show message" function. If the user aborts (escape) after the redirect to one of the print pages, the script

halts, but the user is looking at that layput page. How do I set it up so that when a user confirms "cancel", the script will redirect the user back to the main layout page?

Posted

Do NOT let the user abort. First step in script. Use another show message which will give the user the choice to cancel or print.

Posted

Here's a script that I use a lot for printing. No matter what the user does, they will always end up back where they started.

Allow User Abort [Off]

Enter Browse Mode

Set Error Capture [On]

Beep

Show Message [buttons: "Cancel", "Choice 1", "Choice 2"; Data: "Print page choice message."]

If [status(CurrentMessageChoice) = 1]

Exit Script

Else

If [status(CurrentMessageChoice) = 2]

Go to Layout [Print Layout 1]

Else

If [status(CurrentMessageChoice) = 3]

Go to Layout [Print Layout 2]

End If

End If

End If

Toggle Status Area [show]

Print Setup [Restore setup options, No dialog]

Enter Preview Mode

Pause/Resume Script ["0:01:30"] {optional - allows preview of print}

Print

Enter Browse Mode

Go to Layout [original layout]

Toggle Status Area [Toggle]

Posted

Your script is almost identical to the script that I'm currently running. The problem I'm attempting to resolve is after a user makes a choice and the script starts to run the print routine and the user then hits escape, they are left on the printing layout. I'm try to avoid sudden dump out and come with a solution that will redirect (after the escape) the user back to main layout.

Thanks

  • 2 months later...
Posted

I know this is not recent but how would you deal with this scenario. The records are printed from a separate file and the Print Setup (Windows) is available to the user - to offer them a choice of printer - and the user then cancels. How can I get him back to his original layout where the button is located.

Hope you can help.

Many thanks

Carl

This topic is 7134 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.