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

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

Recommended Posts

Posted

Argh! Have a simple script,

allow abort off

go to layout

page setup

enter preview mode (pause)

show message

if 1

enter browse mode

go to layout

if 2

print

go to layout

Problem is it goes to the first record every time. I take out the preview mode and message choice to test and goes to the correct record. I check my reports page which has about a dozen reports that do similar stuff and they all work fine. Everytime I put in the preview again it goes to the first record again. When I return it takes me back to the correct record.

I've never encountered this before and it's driving me loco!

ricardito

Posted

Duplicate the script and delete all but the Print Setup and Print steps. Run this script with dialog on to verify it's correct. If it's not, manually perform a Print Setup and Print, then 'Replace' the settings in your full script.

Posted

No go. Did as you suggested, still goes to first record. Deleted script and started over, step by step, soon as I put in the preview it shows first record. Deleted all records and started over, same thing.

Posted

Oh, if you have more than one record found, then of course it will preview with the first one. What you want to do is either isolate the current record or store it in a global so that you can Go to Record/Request/Page ['gRecord'], assuming each record is in fact one page only.

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