Re: printer setup through a script
- From: "Your Name" <your.name@xxxxxxx>
- Date: Wed, 16 Sep 2009 19:33:54 +1200
"Raimund" <raimund.schroeder@xxxxxxxx> wrote in message
news:a4087$4aafc81d$557f5be7$12815@xxxxxxxxxxxxxxxx
Hi everybody,
once again I need some help.
I use FP5 on WinXP home and on a Mac (Iguess with OSX) and have made up
several layouts to print out letters and envelopes.
Naturally the printer setup for an envelope (European format C5/C6) is
much different to that for a letter (European format A4).
Is it somehow possible to change the printer setup with a script - e.g.
when I am in layout envelope I click a button called "print" and the
printer setup is done together with the print-command?
Thanks for any help, Raimund.
That's exactly what the Script commands "Page Setup" and "Print" are for,
although they are a little peculiar to set-up in the older versions of
FileMaker.
You need to create the Layout as you want it, including setting the correct
option in the File -> Page Set-up window. Then you can create a Script which
has those two commands.
i.e.
Page Setup [Restore, No Window]
Print []
The "Restore" option on the "Page Setup" command will retrieve the options
you manually set. The "No Window" option means the user doesn't have to see
that options window displayed. You can ste the Print command to also do a
"Restore" and "No Window", but it's usually best to allow the user to be
able to change those (e.g. they may want 2 copies of the printout this time,
but only one next week).
Create a button and set it to perform that Script. You'll need a separate
Script for each variation in Page Setup settings (i.e. one Script for
landscape, one for portrait, etc.).
Whenever you later finish editing that script FileMaker will ask if you want
to keep the original stored settings or replace them with the new ones (the
settings you manually made recently via the File menu item). This allows you
to change the settings if you need to by first manually changing the File ->
Page Setup options and then editing the Script (you don't have to actually
edit anything, just close the window again and tell FileMaker to replace the
stored Page Setup).
There is a slight problem here in that you're using two different computers
(not to mention two different operating systems). Even though it's the same
printer, you'll need to set the Page Setup options individually on each
computer, and each time edit-exit the Script to store the new settings, but
once you've done that it should work .
Helpfull Harry :o)
.
- References:
- printer setup through a script
- From: Raimund
- printer setup through a script
- Prev by Date: Re: Deleting related records FM10
- Next by Date: Re: Possible Move to Filemaker from MS Access
- Previous by thread: printer setup through a script
- Index(es):
Relevant Pages
|