Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

WebView.GetPrintParameter

Queries print parameters.

Component Version macOS Windows Linux Server iOS SDK
WebView 2.1 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "WebView.GetPrintParameter"; ParameterName )   More

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

Release notes

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 24th February 2026


WebView.GetPreferences - WebView.GetPrivateBrowsing