Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WebView.Print
Prints the current web view content.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WebView | 1.8 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |
MBS( "WebView.Print"; WebViewerRef ) More
Parameters
Parameter | Description | Example |
---|---|---|
WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. |
Result
Returns OK or error.
Description
Prints the current web view content.You can get/set some parameters on macOS using the WebView.GetPrintParameter/WebView.SetPrintParameter functions.
Supported for WebKit 2.x (FileMaker 16 Mac) with version 11.5.
To disable footer and header in print on Windows, please run Internet Explorer. In File menu go to Page Setup and in that dialog set all the popup menus for header/footer content to empty.
Version 10.3 adds iOS support to show print dialog.
Implemented for Windows with Microsoft Edge/Chrome engine in MBS Plugin 11.5 when using FileMaker Pro 19.4 or newer. Will show print dialog.
This function may return before print is done.
Examples
Print web viewer:
Set Variable [ $r; Value:MBS( "WebView.Print"; "web" ) ]
See also
- WebView.Create
- WebView.FindByName
- WebView.GetPrintParameter
- WebView.PrintPreview
- WebView.PrintToFile
- WebView.RenderPDF
- WebView.SetPrintParameter
Release notes
- Version 13.1
- Implemented WebView.AllCookies and WebView.PrintToFile for Windows.
- Version 11.5
- Fixed bug in WebView.PrintToFile and WebView.Print functions to make it work for WebKit 2.
Blog Entries
- Printing a WebViewer in FileMaker
- MBS FileMaker Plugin, version 11.5pr5
- Print web viewer on iOS
- MBS Filemaker Plugin, version 2.1 final candidate
- MBS Filemaker Plugin 1.8pr4
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 10th February 2024