Re: printer setup through a script




"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)


.



Relevant Pages

  • Re: print setup saves the printer
    ... >> is this normal behaviour and do i have to make a setup script for each ... > Setup command by setting the Page Setup to A4 landscape. ... > Using the Page Setup command a script can store the Page ... choose a printer in your operating system's Printer settings ...
    (comp.databases.filemaker)
  • Re: folder options view save settings post #2
    ... >I received this script from a person online who had offered it for free to be downloaded in a .reg file. ... open a window (and while about it set up as you would like by default, ... with View settings; Status/toolbar settings, ... then go to its Tools - Folder Options and on the View page ensure that ...
    (microsoft.public.windowsxp.general)
  • Re: Regional Option
    ... >I'm looking for a way to automate the Regional Options settings for WinXP ... >and Win2k machines, including the date-time, currency, keyboard language ... >customatization passibilities ore a script script which ... >handles this kind of setup thru GPO. ...
    (microsoft.public.windows.group_policy)
  • Re: how to assess to a particular file a particular printer?
    ... Next time you'll run that script, ... > The print dialog boxes do remember the settings for the printer, ... landscape, etc.), not the actual PRINTER setup. ... can only store one page setup for each printer though. ...
    (comp.databases.filemaker)
  • Re: Unipod printing problem
    ... printer setups and the Gimp-print set up window is showing the default ... what are the names of the printers in!Printers (as displayed on ... The setup window calls it StCol600. ... Settings will be sent by email. ...
    (comp.sys.acorn.misc)