Jump to content

print setup


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

Recommended Posts

i did i did... but i noticed that it doesn't work... please correct me if i'm wrong...

1) I go to Page Setup and choose my printer and settings

2) I go to Scriptmaker, create my script with the Print Setup [Restore,] function and save the script.

3) I run the script, works great!

4) I go to Page Setup and choose a different printer and print off a random page.

5) I run my script, and uh-oh! The page comes out on the printer specified in step 4) not step 1)!!!

How come?

Link to comment
Share on other sites

I'm not sure why, but I have run it to that also. One thing that helps is after the script is written. Do a manual print, then go back in to the script and say done, and when it ask if you want to keep or replace your restore, chose replace.

Besides that, you need everything to chose dialog, or hope that someone better then me answers your post!!

Link to comment
Share on other sites

Select 'No dialog' for Print Setup. Deselect 'No dialog' for Print. If the printer is changed during Print, it will not affect the stored Print Setup. Changing a printer in Print Setup is the only way to change the default printer for FileMaker on a machine (at least for Windows). So I only make a Setup modifiable from a 'Change Printer' button in a Preferences file.

Notice also (on Windows) that if you manually change the default printer in the Control Panel, it is not updated in FileMaker. I've seen situations where a printer has been removed and another set as the default, and FM is still trying to print to the deleted original!

In a somewhat related category, beware that Print settings are dependent upon the Print Setup being present. If you have the two in separate scripts, Print will seem to act randomly. If you keep the two together, Print will behave much more nicely.

Link to comment
Share on other sites

this removes the luxury of the script though... i have a printer that needs to be targeted as well as multiple trays on that printer, the script was setup to switch between trays seamlessly... now with the Print dialog box coming up, they have to choose the tray themselves... any ideas?

Link to comment
Share on other sites

In that case, you may want multiple scripts, each with its own Print Setup/Print steps. I haven't tried this with multiple trays before, but I have used it for different scaling sizes and page orientations. The scripts would be called 'Printer1 - 80 percent - Portrait - Records being browsed', 'Printer1 - 90 percent - Landscape - Single record', etc. The problem with allowing Print Setup to be changed is that it will become the default until it is changed again, which is probably not what you want.

Another thing I forgot to mention, it's better to have the user determine the printer before performing the print, especially if you are using Page X of Y in a header or footer. The same font can print differently enough on two printers that it changes the number of records per page from the preview to the hard copy. Also, default printer margins can be a hassle. This is another reason why I disallow Print Setup modification except for the 'Change Printer' button script. Then both Print Setup and Print steps are set with "No dialog" and there aren't as many "gotchas"!

Link to comment
Share on other sites

This topic is 6561 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
 Share

×
×
  • Create New...

Important Information

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