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.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
WebView.SetPrintParameter
Sets print parameters for WebView.Print method.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| WebView | 2.1 | Yes | No | No | No | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| ParameterName | The name of the parameter. For MacOS, can be horizontallyCentered, verticallyCentered, showPrintPanel, orientation, printer, bottomMargin, topMargin, leftMargin or rightMargin. |
orientation |
| ParameterValue | The value for the given parameter: A boolean value for horizontallyCentered, verticallyCentered and showPrintPanel. "portrait" or "landscape" for orientation. The printer name for printer. A number for bottomMargin, topMargin, leftMargin or rightMargin. | portrait |
Result
Returns OK or an error message.
Description
Sets print parameters for WebView.Print method.If showPrintPanel (Default 1) if set to 0, then no print window is shown. verticallyCentered and horizontallyCentered define if content is centered. If printer name is not valid, it will be ignored.
Version 5.2 adds PaperName, PaperWidth and PaperHeight.
Use WebView.GetPrintParameter to query.
Version 10.3 adds iOS support with settings for orientation and JobName.
Examples
Sets bottom margin to 5 points:
MBS("WebView.SetPrintParameter"; "bottomMargin"; 5)
Use square paper size:
Set Variable [$r; Value:MBS("WebView.SetPrintParameter"; "paperWidth"; 800)]
Set Variable [$r; Value:MBS("WebView.SetPrintParameter"; "paperHeight"; 800)]
Use A4 paper:
MBS("WebView.SetPrintParameter"; "paperName"; "iso-a4")
Set landscape:
MBS("WebView.SetPrintParameter"; "orientation"; "landscape")
See also
Example Databases
Blog Entries
- Print web viewer on iOS
- Print WebViewer on macOS in FileMaker
- MBS FileMaker Plugin, version 5.2pr8
- MBS Filemaker Plugin, version 4.0pr4
- MBS Filemaker Plugin, version 2.1 final candidate
Release notes
- Version 10.3
- Added iOS support for WebView.SetPrintParameter and WebView.GetPrintParameter. Currently only supporting JobName and Orientation as settings.
Created 18th August 2014, last changed 9th July 2020
WebView.SetPreferences - WebView.SetPrivateBrowsing
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins