1 Reply Latest reply on Jul 27, 2017 4:01 PM by mikebeargie

    "Print" within a script can't find Default Printer

    jhh

      Running Filemaker Pro 11 and Filemaker Pro 11 Advanced under Windows 10 in compatibility mode for Windows 7.

       

      A customer has purchased a new HP LaserJet MSP426FPW that would not print reports from a filemaker solution I call MarinaPro.  Everything works well on other customers Windows 10 computers connected to several different but older HP LaserJet printers.

       

      I found that the "Print" commands (Restore & No Dialog is set) within virtually all my associated scripts were set to a an HP LaserJet 4L printer I used at one time when creating solutions and that was moved to the trash heap several years ago.  By clicking the print options "Specify" button, I had to select the current default printer in all the scripts and then I could print the reports.

       

      If you do not specify an output destination before saving a script or if the specified printer cannot be found when a script executes, the output from the script step is sent to the default printer.  I would have thought that "Print" should have found the "Current Default Printer".

       

      Any way to assure that it happens through additional scripting?

       

      Also, in checking the available printers by opening Filemaker printer Setup, I can see several printers in the list that are no longer connected to the computer.

       

      Is there any way to clear or update the list of supposedly connected printers?

        • 1. Re: "Print" within a script can't find Default Printer
          mikebeargie
          Running Filemaker Pro 11 and Filemaker Pro 11 Advanced under Windows 10 in compatibility mode for Windows 7.

          Regardless of compatibility mode, FM11 is beyond end of life of support and is no way guaranteed to function on windows 10.

           

          Also, in checking the available printers by opening Filemaker printer Setup, I can see several printers in the list that are no longer connected to the computer.

          This is a windows issue, not a filemaker issue. Delete the old printers out of the control panel > Manage printers snap in and they will no longer appear in the system dialog for printers.

           

          If you do not specify an output destination before saving a script or if the specified printer cannot be found when a script executes, the output from the script step is sent to the default printer.  I would have thought that "Print" should have found the "Current Default Printer".

          Unfortunately, it seems that FileMaker will remember the "last used" setting before you host a file, so it will continuously reset back to that printer each time you open the file, not to the current default printer used by the OS.

           

          My recommendation (after first upgrading to a supported version of FileMaker) would be to integrate a printer plugin, like this one:

          2empowerFM Hands-Free Printer

          This will allow you absolute full control over setting printer settings via script, and it will end up saving you time and frustration trying to support your clients every time a printer is replaced. They offer a developer license and a trial that can be integrated to vertical market products. There's also a demo file so you can play around with it.