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

Changing Printers in a Script!


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

Recommended Posts

Posted

Is there a way to change printers in a script.

Ex: I want to create a button that will print the current view in PDF, And another button to print to the local printer.

We have atleast 5-7 printers (not including Adobe) and it'a a pain to sift through these printers.

can anyone help?

~Addam~

Posted

Sure, no problem. All you have to do is setup a printer, create a script that does a print setup step with restore setup options on. Repeat these steps for each printer you have (7 printers is not that much, believe me, we have about 30 to 40 printers in the building) and your done.

Posted

Correct. Filemaker (and most applications in general) don't have control over which printer is selected. They can only change attributes related to page layout, size orientation, etc. It's an operating system issue. So, to switch printers, you will need an external utility or plug-in such as the ones mentioned above . You can also check out Winbatch which provides Applescript-like scripting ability on Windows machines.

Posted

Bob is correct. It is a windows issue. I used to use Winbatch to solve this problem, but you had to pause the script long enough to allow Winbatch to modify the Windows Registry. I now have been using Productive Computing's plug-in for a couple of years now. Works flawlessly! Very Simply! Can't Say Enough!!!

  • 1 year later...
Posted

it's based on changing the registry. elegantly made, because it is set up for different versions of FileMaker.

Another tip here:

When you are using StandardUS-Letter Portrait, you can set custom page margins of about 1 cm, that shoud fit most printers. Only the landscape and scaled printouts have to be cusomized ,,,,

Posted

Ugo, I wasn't trying to be modest. My ego is just as big as anybody's. grin.gif

I had somehow assumed that the system in question was Windows, so I didn't bother mentioning the Applescript method.

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