I'm not sure it's the "wrong result", filemaker for things like importing and printing always remembers the "last used settings" for your session to make it easier on the user.
You CAN script the print setup script step to reset your printer state. Just set the print setup options to be your defaults and run it before you run your print command. You can also override the default File > Print command with a custom menu that runs a script with that included reset instead.
Try quitting filemaker, and reconnecting to see if your printer settings are now reset. This is "session-based" behavior.
thanks for your ideas. Actually our solution is a multiuser, multisession enviroment with a database holding each users printer name for laserprinter, labelprinter for small labels, laberprinter for big labels. Every user has a computer setup with its own printer names.
So there can be no script step to reset printer state as it is different for each user/session. The Filemaker setup script step only allow to save the local printer of the developer who creates that script step.
We still believe it is a bug that needs to be adressed. Even Get (PrinterName) gets back with the wrong result as described.
It's not a bug based on what you've described. Get(PrinterName) is just returning to you the last used printer of the session. FileMaker is remembering a session based preference. Other programs like word, preview and chrome work the same way.
If printing is a mission-critical part of your application, I'd suggest getting a printer control plugin for filemaker. Right on the page for dracoventions plugin it covers your specific issue:
Restore previous printer.
After automating a job to a label printer, isn't it annoying that label printer is selected next time you print manually? HFP lets you restore the previously-selected office printer after automating printing to that label printer.
No other plugin can set a default manual printer.
I am with you.
This was my very first post on a FileMaker Inc forum, and i reported it as an issue.
Unfortunately i never had any official answer :
Recently, i posted an idea in the brand new according section, with the same fail.
Please vote up :
Nope, it's a bug. Get(PrinterName) is not returning the last printer of the session. It is returning the system's printer. Try it with my steps above.