Skip 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.

Script for sending 3 reports to 3 different printers?

Featured Replies

Hi guys n gals,

I'm sure I've seen this question up on the Forums before but I didn't need the answer and now I do.

Situation:

In an orders database, before confirming an order, I input the method of payment (ie: Cheque, Cash, Credit Card, etc) for a Mail Order Shipment. I later am able to print out all Invoices 'Sign & Return with Cheque' form for people who are paying by cheque. I can print out a report of all people paying Credit card with the number, issue number, exp date to be given to someone in the company to process on a PDQ machine and then later update the system to state PAYMENT RECEIVED or DECLINED. If it is PAYMENT RECEIVED then I can do a script that produces a receipt and delivery note and labels to go on the package.

Each of these proceedures are not a problem manually.

However Problem:

I have three different types of paper

1. Letter headed for the Sign & Return form

2. Plain Paper for the Receipt and Delivery note and most other

reports

and 3. Labels (Avery Laser Labels L7160) for the packages.

I have three printers which can be loaded up with a paper type in each.

QUESTION:

How do I, within a script, send the print job of labels to the printer with the labels, send the print job of Sign & Return's to the printer with the letter headed paper and send the print job of all other reports and receipts to the printer with plain paper in it?

This doesn't seem too much to ask for but cannot think of a way of doing it. Please help!

Thank you in advance!

In theory you need 3 scripts, one to control the output to each printer. They could be done via a single script, but it is easier to manage if the job is broken down. They can all be controlled via a single master script however.

The problem is that Filemaker cannot switch the active printer simply via the Scriptmaker. You need an outside force to control the printer switching part.

You did not mention platform, but Applescript, WinBatch or some of the existing Filemaker plugins can all accomplish this task.

  • Author

Thanks guys,

I haven't tried it yet but have read through the referenced file with the Apple script.

If a printer has two trays, is there any addition that can have slightly more custom information like choosing tray number? This is probably asking too much but thought it was worth asking.

cheers!!!!!!

If you are using a Postscript printer--and you should be if you're trying to get this sophisticated--then yes there is a way to select trays or the manual feed slot. It also involves applescript, and you need to modify the printer's PPD file. I've done this on a solution that I am currently developing to print cheques and summary info from diffenent paper trays.

This question has come up a few times. So, rather than post the method in this thread I will post it in the development standards forum.

http://www.fmforums.com/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=8&t=000030

[ December 18, 2001: Message edited by: BobWeaver ]

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.