Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

WebView.Print

Prints the current web view content.

Component Version macOS Windows Linux Server iOS SDK
WebView 1.8 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
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.

Not supported for WebKit 2.x (FileMaker 16 Mac). We tried it, but as of macOS 10.12.4 we only get white pages. Works in FileMaker 16, when using a Web Viewer created using WebView.Create.

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.

For Windows this function is only supported in FileMaker Pro when using Internet Explorer as engine behind the Web Viewer, but not when Microsoft Edge/Chrome engine is used.

Examples

Print web viewer:

Set Variable [ $r; Value:MBS( "WebView.Print"; "web" ) ]

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 10th August 2020


WebView.PressKey - WebView.PrintPreview

Feedback: Report problem or ask question.