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:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Sets print parameters for WebView.Print method.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WebView | 2.1 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |
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 |
Returns OK or an error message.
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")
This function checks for a license.
Created 18th August 2014, last changed 29th April 2023