Skip links

Caution, trap: Switch printers in FileMaker via plugin.

FileMaker Plugin

FileMaker Tip: Printer switching via pluginThe dynamic script-controlled addition and removal of printers is not easily possible with FileMaker on-board tools, as selected printers can only be saved statically in FileMaker scripts. For this reason, appropriate plug-ins have been available for many years, which provide cross-platform switching of printers in FileMaker on Mac OS X and Windows. Although most of these plug-ins do not offer a direct option for switching printers, they do have functions for handling the default printer of the running system. For example, the MBS plugin the functions  "GetPrinters" as well as "Set Default Printer" and "Get Default Printer" to read out the printers installed in the system, set the default printer and read it out. These functions are usually sufficient, as FileMaker always prints to the currently set default printer. In the example file "Printers.fmp12" supplied with the MBS plug-in, the whole thing works without any problems.

But be careful: As soon as you have manually opened the print dialog under [File] > [Print] a printout has been made, the printer selected there is permanently stored in the FileMakerDatabase and from then on FileMaker will only print to the printer set there. The functions for the default printer of the plugin then no longer have any effect. This applies to all plugins that can switch the default printer, as the cause of this behavior lies with FileMaker. According to previous information, this process is not reversible, so that a FileMaker database must be rebuilt in such a case if the switching of printers in a file "damaged" in this way is to work again. This behavior is described in the Forum of FileMaker Magazine by other developers.

Leave a comment

Share this page:

ERP software as flexible as your company.
We will be happy to advise you.

Customizable ERP software for Mac, Windows and iOS.

You are here: FileMaker tip: Be careful when switching printers via plugin