WebView.GetPrintParameter
-------------------------

Queries print parameters.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WebView](component_WebView.md) | [2.1](newinversion21.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "WebView.GetPrintParameter"; ParameterName ) 

**MBS**( **"WebView.GetPrintParameter";** /\* Queries print parameters. \*/  
**$ParameterName**) /\* The name of the parameter.   
For MacOS, can be horizontallyCentered, verticallyCentered, showPrintPanel, orientation, printer, bottomMargin, topMargin, leftMargin or rightMargin.e.g. orientation \*/ 

### 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 |

### Result

Returns a boolean value for horizontallyCentered, verticallyCentered and showPrintPanel. Returns "portrait" or "landscape" for orientation. Returns name for printer. Returns a number for bottomMargin, topMargin, leftMargin or rightMargin.

### Description

Queries print parameters.  
Returns the values you set previously with [WebView.SetPrintParameter](WebViewSetPrintParameter.md) function.  
  
Parameters for iOS:   
- Duplex: None, LongEdge or ShortEdge,
- OutputType: General, Photo, Grayscale or PhotoGrayscale,
- JobName and
- Orientation: Portrait or Landscape.

Parameters for Windows with Edge:   
- Orientation: Portrait or Landscape.
- ShouldPrintBackgrounds,
- PaperWidth,
- PaperHeight,
- BottomMargin,
- TopMargin,
- LeftMargin,
- RightMargin,
- ShouldPrintHeaderAndFooter: 1 or 0,
- ShouldPrintSelectionOnly: 1 or 0,
- HeaderTitle and
- FooterUri
- PageRanges
- PrinterName
- PagesPerSide
- Copies
- Collation
- ColorMode
- Duplex

Parameters for macOS with WebKit 2:   
- HorizontallyCentered,
- VerticallyCentered,
- ShowPrintPanel,
- Orientation: Portrait or Landscape.
- PaperName,
- Printer,
- PaperWidth,
- PaperHeight,
- BottomMargin,
- TopMargin,
- LeftMargin,
- RightMargin,
- ShouldPrintBackgrounds and
- MinimumFontSize.

### Examples

Queries bottom margin:

 MBS ("WebView.GetPrintParameter"; "bottomMargin")  
### See also

- [WebView.ClearPrintParameters](WebViewClearPrintParameters.md)
- [WebView.Print](WebViewPrint.md)
- [WebView.PrintToFile](WebViewPrintToFile.md)
- [WebView.SetPrintParameter](WebViewSetPrintParameter.md)

### Release notes

- **Version 13.2**
    - Added [WebView.SetPrintParameter](https://www.mbsplugins.eu/WebViewSetPrintParameter.shtml) and [WebView.GetPrintParameter](https://www.mbsplugins.eu/WebViewGetPrintParameter.shtml) for Windows with this parameters: paperWidth, paperHeight, bottomMargin, topMargin, leftMargin, rightMargin, orientation and shouldPrintBackgrounds.
- **Version 10.3**
    - Added iOS support for [WebView.SetPrintParameter](https://www.mbsplugins.eu/WebViewSetPrintParameter.shtml) and [WebView.GetPrintParameter](https://www.mbsplugins.eu/WebViewGetPrintParameter.shtml). Currently only supporting JobName and Orientation as settings.

### Blog Entries

- [MBS FileMaker Plugin, version 13.2pr5](https://www.mbsplugins.de/archive/2023-05-03/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.1 final candidate](https://www.mbsplugins.de/archive/2010-10-22/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 11st May 2026

  
[WebView.GetPreferences](WebViewGetPreferences.md) - [WebView.GetPrivateBrowsing](WebViewGetPrivateBrowsing.md)

[HTML Version](WebViewGetPrintParameter.shtml)