dbTalk Databases Forums  

how to assess to a particular file a particular printer?

comp.databases.filemaker comp.databases.filemaker


Discuss how to assess to a particular file a particular printer? in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PK
 
Posts: n/a

Default how to assess to a particular file a particular printer? - 08-17-2005 , 10:15 AM






I have several files that ask for different printers (Filemaker Pro 5.5).
I would like that for instance file a always uses printer a and file b
always uses printer b, without the need for adjusting..
Is that possible?
Till now Filemaker always takes in the print window that printer, last used.

Thanks for comments.

Pim Kool



Reply With Quote
  #2  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: how to assess to a particular file a particular printer? - 08-17-2005 , 11:47 AM






You have 2 instructions in the scriptmaker menu : 'Print Setup' and
'Print'.
One script will define to use printer a with file A, and another script
will define to use printer b when dealing with file B.
Remi-Noel

"PK" <w.h.kool (AT) tnw (DOT) tudelft.nl> a écrit ...
Quote:
I have several files that ask for different printers (Filemaker Pro
5.5).
I would like that for instance file a always uses printer a and file b
always uses printer b, without the need for adjusting..
Is that possible?
Till now Filemaker always takes in the print window that printer, last
used.

Thanks for comments.

Pim Kool




Reply With Quote
  #3  
Old   
Dan
 
Posts: n/a

Default Re: how to assess to a particular file a particular printer? - 08-17-2005 , 02:32 PM



Do these steps actually work in FMP5.5? They do not work in FMP7. They
appear to work but as soon as you close the file the choice of printer
disappears with it..

If anyone knows how to make this choice stick I would love to hear it.


Remi-Noel Menegaux wrote:
Quote:
You have 2 instructions in the scriptmaker menu : 'Print Setup' and
'Print'.
One script will define to use printer a with file A, and another
script will define to use printer b when dealing with file B.
Remi-Noel

"PK" <w.h.kool (AT) tnw (DOT) tudelft.nl> a écrit ...
I have several files that ask for different printers (Filemaker Pro
5.5).
I would like that for instance file a always uses printer a and file
b always uses printer b, without the need for adjusting..
Is that possible?
Till now Filemaker always takes in the print window that printer,
last used.

Thanks for comments.

Pim Kool
--
Dan
Using
FMP7.03, WinXP SP2




Reply With Quote
  #4  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: how to assess to a particular file a particular printer? - 08-17-2005 , 03:52 PM



In FMP5 to 6, you setup by hand the proper printer by 'File' 'Print
Setup', then you 'edit' your script AA, put the 2 lines 'Print Setup( )'
and 'Print( )' with no option, then 'OK', then a new windows shows up
and you click on 'Replace' on the 'Print' line. Then you 'edit' again
your script AA, and you add the 'Restore Setup Options' in the 'Print
Setup' line, then OK. Next time you'll run that script, it will remember
your settings.
There are quicker ways to do that but less easy to explain.
Remi-Noel


"Dan" <dan (AT) owlsnet (DOT) co.uk> a écrit ...
Quote:
Do these steps actually work in FMP5.5? They do not work in FMP7. They
appear to work but as soon as you close the file the choice of printer
disappears with it..

If anyone knows how to make this choice stick I would love to hear it.


Remi-Noel Menegaux wrote:
You have 2 instructions in the scriptmaker menu : 'Print Setup' and
'Print'.
One script will define to use printer a with file A, and another
script will define to use printer b when dealing with file B.
Remi-Noel

"PK" <w.h.kool (AT) tnw (DOT) tudelft.nl> a écrit ...
I have several files that ask for different printers (Filemaker Pro
5.5).
I would like that for instance file a always uses printer a and file
b always uses printer b, without the need for adjusting..
Is that possible?
Till now Filemaker always takes in the print window that printer,
last used.

Thanks for comments.

Pim Kool

--
Dan
Using
FMP7.03, WinXP SP2




Reply With Quote
  #5  
Old   
42
 
Posts: n/a

Default Re: how to assess to a particular file a particular printer? - 08-17-2005 , 06:11 PM



In article <4303a463$0$20838$626a14ce (AT) news (DOT) free.fr>, rnmenegaux (AT) free (DOT) fr
says...
Quote:
In FMP5 to 6, you setup by hand the proper printer by 'File' 'Print
Setup', then you 'edit' your script AA, put the 2 lines 'Print Setup( )'
and 'Print( )' with no option, then 'OK', then a new windows shows up
and you click on 'Replace' on the 'Print' line. Then you 'edit' again
your script AA, and you add the 'Restore Setup Options' in the 'Print
Setup' line, then OK. Next time you'll run that script, it will remember
your settings.
There are quicker ways to do that but less easy to explain.
Remi-Noel
Uh... you sure?

The print dialog boxes do remember the settings for the printer, but not
the printer itself. They'll print to the default printer every time...
at least in windows and OS 9. I haven't ever tried it on OS X.


Reply With Quote
  #6  
Old   
Helpful Harry
 
Posts: n/a

Default Re: how to assess to a particular file a particular printer? - 08-18-2005 , 12:13 AM



In article <MPG.1d6d63eabea853e2989c8c (AT) shawnews (DOT) vf.shawcable.net>, 42
<nospam (AT) nospam (DOT) com> wrote:

Quote:
In article <4303a463$0$20838$626a14ce (AT) news (DOT) free.fr>, rnmenegaux (AT) free (DOT) fr
says...
In FMP5 to 6, you setup by hand the proper printer by 'File' 'Print
Setup', then you 'edit' your script AA, put the 2 lines 'Print Setup( )'
and 'Print( )' with no option, then 'OK', then a new windows shows up
and you click on 'Replace' on the 'Print' line. Then you 'edit' again
your script AA, and you add the 'Restore Setup Options' in the 'Print
Setup' line, then OK. Next time you'll run that script, it will remember
your settings.
There are quicker ways to do that but less easy to explain.
Remi-Noel

Uh... you sure?

The print dialog boxes do remember the settings for the printer, but not
the printer itself. They'll print to the default printer every time...
at least in windows and OS 9. I haven't ever tried it on OS X.
I was just about to say the same thing. FileMaker can NOT change
printers (wihtout a plug-in or AppleScript) and doesn't remember the
printer at all - the only thing it stores is the PAGE setup (ie, A4,
landscape, etc.), not the actual PRINTER setup. BUT FileMaker can store
the page setup for multiple printers within one script, so whichever
printer is the current default one gets the appropriate page setup
restored (assuming you stored a page setup for that printer) - a script
can only store one page setup for each printer though.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
  #7  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: how to assess to a particular file a particular printer? - 08-18-2005 , 12:58 AM



Yes, you are right : FMP does not retain the printer itself....
To make you forgive me, here is the addresses of several plugins that
allow to change printer 'in the fly' :
http://www.softtechsolution.com/change-my-printer/ cost $17.00
http://www.fmplugin.com/fmprinter.php cost $39.99
http://www.myfmbutler.com/fmbutler_c...k_id=222&-find
cost $59
https://www.productive.cc/pci_cart/F...ID_No=24&-Find
cost $59.95
Remi-Noel


"Helpful Harry" <helpful_harry (AT) nom (DOT) de.plume.com> a écrit :
Quote:
rnmenegaux (AT) free (DOT) fr says...
In FMP5 to 6, you setup by hand the proper printer by 'File' 'Print
Setup', then you 'edit' your script AA, put the 2 lines 'Print
Setup( )'
and 'Print( )' with no option, then 'OK', then a new windows shows
up
and you click on 'Replace' on the 'Print' line. Then you 'edit'
again
your script AA, and you add the 'Restore Setup Options' in the
'Print
Setup' line, then OK. Next time you'll run that script, it will
remember
your settings.
There are quicker ways to do that but less easy to explain.
Remi-Noel

Uh... you sure?

The print dialog boxes do remember the settings for the printer, but
not
the printer itself. They'll print to the default printer every
time...
at least in windows and OS 9. I haven't ever tried it on OS X.

I was just about to say the same thing. FileMaker can NOT change
printers (wihtout a plug-in or AppleScript) and doesn't remember the
printer at all - the only thing it stores is the PAGE setup (ie, A4,
landscape, etc.), not the actual PRINTER setup. BUT FileMaker can
store
the page setup for multiple printers within one script, so whichever
printer is the current default one gets the appropriate page setup
restored (assuming you stored a page setup for that printer) - a
script
can only store one page setup for each printer though.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships
;o)



Reply With Quote
  #8  
Old   
Dan
 
Posts: n/a

Default Re: how to assess to a particular file a particular printer? - 08-18-2005 , 07:58 AM



Remi-Noel Menegaux wrote:
Quote:
Yes, you are right : FMP does not retain the printer itself....
To make you forgive me, here is the addresses of several plugins that
allow to change printer 'in the fly' :
http://www.softtechsolution.com/change-my-printer/ cost $17.00
http://www.fmplugin.com/fmprinter.php cost $39.99
http://www.myfmbutler.com/fmbutler_c...k_id=222&-find
cost $59
https://www.productive.cc/pci_cart/F...ID_No=24&-Find
cost $59.95
Remi-Noel
SNIP

Since my post yesterday I have done a bit of rummaging in the Windows
Registry (I'm no help for Mac users I'm afraid). The following only
applies to the machine on which Filemaker is running, but it will
include Network printers attached to the machine and is just a
suggestion.

The Filemaker default printer is kept at the key
"HKEY_CURRENT_USER\Software\FileMaker\FileMake r Pro\7.0\Preferences"
under the Value
"Printer"
which is a string value
"REG_SZ"
on my machine this is currently set to
"Colour Headers,winspool,Ne02:"
which is my name for the printer "Colour Headers" with info on the
driver.

So the first task is to find out this string value for each printer
attached to the machine - tedious but necessary. So one-by-one setup
your printers as the default printer for Filemaker and then using
RegEdit export the Filemaker preferences Key or simply copy the printer
name/driver infor into a text file.

The second task is to use a scripting language which will write Registry
Keys. I use AutoItv3 which is freeware. For example using AutoIt the
following single-line script will change the Filemaker Default printer
to the above "Colour Headers" printer.

RegWrite("HKEY_CURRENT_USER\Software\FileMaker\Fil eMaker
Pro\7.0\Preferences", "Printer","REG_SZ","Colour
Headers,winspool,Ne02:")

Once you have thoroughly tested the script AutoIt will compile this into
an exe file which you can then run from Scriptmaker using SendEvent.
Alternatively you can just run the script without compiling (but it is
easier to set this up if it is compiled) So set up one appropriately
named scipt for each printer and then run the script before each print
step if you want to change to a particular printer.


-
Dan
Using
FMP7.03, WinXP SP2




Reply With Quote
  #9  
Old   
Dan
 
Posts: n/a

Default Re: how to assess to a particular file a particular printer? - 08-18-2005 , 05:58 PM



Dan wrote:

Quote:
Since my post yesterday I have done a bit of rummaging in the Windows
Registry (I'm no help for Mac users I'm afraid). The following only
applies to the machine on which Filemaker is running, but it will
include Network printers attached to the machine and is just a
suggestion.

The Filemaker default printer is kept at the key
"HKEY_CURRENT_USER\Software\FileMaker\FileMake r Pro\7.0\Preferences"
under the Value
"Printer"
which is a string value
"REG_SZ"
on my machine this is currently set to
"Colour Headers,winspool,Ne02:"
which is my name for the printer "Colour Headers" with info on the
driver.

SNIP


Please ignore my comments about scripting changes in the Registration
database. Although the scripting makes the changes; how and when FMP7
picks them up I have been unable to reliably ascertain. The method
described is an unreliable method of changing the default printer and
cannot be recommended.
--
Dan
Using
FMP7.03, WinXP SP2




Reply With Quote
  #10  
Old   
Helpful Harry
 
Posts: n/a

Default Re: how to assess to a particular file a particular printer? - 08-19-2005 , 01:28 AM



In article <mKydnX3p_OsDj5jeRVnysQ (AT) brightview (DOT) com>, "Dan"
<dan (AT) owlsnet (DOT) co.uk> wrote:

Quote:
Dan wrote:

Since my post yesterday I have done a bit of rummaging in the Windows
Registry (I'm no help for Mac users I'm afraid). The following only
applies to the machine on which Filemaker is running, but it will
include Network printers attached to the machine and is just a
suggestion.

The Filemaker default printer is kept at the key
"HKEY_CURRENT_USER\Software\FileMaker\FileMake r Pro\7.0\Preferences"
under the Value
"Printer"
which is a string value
"REG_SZ"
on my machine this is currently set to
"Colour Headers,winspool,Ne02:"
which is my name for the printer "Colour Headers" with info on the
driver.

SNIP

Please ignore my comments about scripting changes in the Registration
database. Although the scripting makes the changes; how and when FMP7
picks them up I have been unable to reliably ascertain. The method
described is an unreliable method of changing the default printer and
cannot be recommended.
I have no idea about Windows registries, but preferences are usually
only loaded upon opening the application or making changes to the
preferences.

If you want to change the default printer you'll probably need to
change what Windows thinks is the default, not Filemaker. )

On the Mac under OS 9 and earlier it's a fairly easy process of an
AppleScript that tells the Chooser to change printers. It should be
something similar under Mac OS X.



Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.