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

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

Recommended Posts

Posted

Hey kids.

I have a problem with what should be a simple exercise in scripting. I have a script that performs a find and sort, then prompts you to view or print the document. The print setup is supposed to be for legal (8.5x14) size paper, but it keeps reverting to letter (8.5x11) for the view and the print options.

When this happens, I change the print setup to legal, then replace the settings in all of my sub-scripts. The script works on my computer, and my assistant's for a while, but then reverts to the letter setting.

It started out as one big, nasty script, which I fixed many times. Then I decided to start from scratch, and create a new set of modular scripts. SAME PROBLEM! I am thoroughly stumped. There are a whole wack-load of other reports that print from this database with no problems. Here are my scripts:

RPT: Print active job report

# "Find active jobs"

Perform Script [ "FND: Omit closed and cancelled dockets" ]

[ Sub-scripts ]

# "Sort by Acct exec and company name"

Perform Script [ "SRT: Acct exec and company name" ]

[ Sub-scripts ]

# "Prompt for view or print."

Show Message [ Buttons: "View", "Print", ""; Data: "Would you like to print or view the report?" ]

Go to Layout [ REPORT_ActiveJobs ]

# "View"

If [ Status( CurrentMessageChoice) = 1 ]

Perform Script [ "PRT: View legal size, Landscape, All browsed records Copy" ]

[ Sub-scripts ]

Enter Preview Mode

[ Pause ]

# "Print"

Else

Perform Script [ "PRT: Print legal size, Landscape, All browsed records" ]

[ Sub-scripts ]

End If

# "Refresh"

Go to Layout [ EDIT_Form ]

Enter Browse Mode

S U B - S C R I P T S (in order):

FND: Omit closed and cancelled dockets

Perform Find [ Request 1 (Omit): t_Completion Closed; Request 2 (Omit): t_Completion Cancelled ]

[ Restore find requests ]

SRT: Acct exec and company name

Sort [ Sort Order: t_Acct Exec (Ascending)ClientByClientID::Company Name (Ascending) ]

[ Restore sort order, No dialog ]

PRT: View legal size, Landscape, All browsed records Copy

Print Setup

[ Restore setup options, No dialog ]

PRT: Print legal size, Landscape, All browsed records

Print Setup

[ Restore setup options, No dialog ]

Print

[ No dialog ]

Any ideas? I'm probably just missing some little thing that's staring me in the face, right?

Thanks.

Paul

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