Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Reverting print setup

Featured Replies

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

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.