Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How To Print Web Viewer Page Mac

Featured Replies

I have searched exhaustively to find the answer and now feel it must be so simple I just can't see it.

Simply have a web viewer on a layout. Want to print the page. On Macs right clicking shows no printing option. Right clicking in Windows Vista it shows perfectly and prints perfectly. Can I not print a web viewer page on the Mac in Filemaker Pro 9, 10 or 11? If it is possible through a plug in or scripting then would appreciate someone giving some info. What am I missing here? Very frustrated that there is so little information on the web to address this. Thanks

Have you tried using File > Print?

try with applescript something like:

open -b com.apple.Safari x.html

osascript -e 'tell app "Safari" to print window 1 with

properties {target printer:"YourPrinterName"}'

on windows you could do something like:

rundll32.exe mshtml.dll,PrintHTML "c:\x.html"

try with applescript something like:

open -b com.apple.Safari x.html

osascript -e 'tell app "Safari" to print window 1 with

properties {target printer:"YourPrinterName"}'

on windows you could do something like:

rundll32.exe mshtml.dll,PrintHTML "c:\x.html"

First of all, that's not applescript. It is a shell script; which can only be performed by using an applescript "do shell script" statement so it isn't clear why you wouldn't just do this in straight applescript.

Secondly, it assumes there is a file on the disk. The web viewer does not necessarily point to a physical file.

As previously suggested, I don't see why the file:Print menu is not being used for this; unless custom menus have been set up in the file and the print action has been omitted.

But that assumes there is a file on the disk. The web viewer does not necessarily point to a physical file.

As previously suggested, I don't see why the file:Print menu is not being used for this; unless custom menus have been set up in the file and the print action has been omitted.

i believe he wants to print the html document and not the filemaker layout.

exporting the webviewer html content to file is pretty easy with GetLayoutObjectAttribute() and the export field content script step.

  • Author

Thanks all three for your suggestions. File > print does print the entire Filemaker window which is undesirable. This web viewer is in a tab group and down the page a bit. The viewer contains content from a website not in our control and is varying lengths for each record sometimes several pages long. To host the window, we've made the entire layout very long. The content of the web viewer alone is distributed for manufacturing production use in the company.

The Applescript idea isn't cross platform and is unreliable across computers in the field. Also couldn't have Filemaker Go support.

So we've settled on a solution by adding a button above the web viewer to open the page externally in a browser window and print from there. On the web page there is also one button that is dhtml calling a javascript when clicked. That button doesn't work in Filemaker without scripting and maybe a plugin, but works fine directly in a browser window.

I think that Filemaker should be able to add a Print Web Viewer into the mix. I can think of many uses for this functionality. It's especially painful that right click print works perfectly in Windows and is not even an option on the Mac side.

Thank you for the help.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.