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

DynaPDF.Print.GetSetting

Queries a printer setting.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 11.4 ❌ No ✅ Yes ❌ No ✅ Yes, on Windows ❌ No
MBS( "DynaPDF.Print.GetSetting"; Selector )   More

Parameters

Parameter Description Example
Selector What propert to query.
This includes Fields, PrinterName, Orientation, PaperSize, PaperLength, PaperWidth, Scale, Copies, DefaultSource, PrintQuality, Color, Duplex, YResolution, TTOption, Collate, FormName, MediaType, and DitherType.
"PrinterName"

Result

Returns value or error.

Description

Queries a printer setting.
If value is not defined, result will be empty.
You can use selector "Fields" to query a list of the fields set.

See DynaPDF.Print.SetSetting to set a value.

See also Print function in DynaPDF manual.

Examples

Query fields set:

MBS( "DynaPDF.Print.GetSetting"; "Fields" )

Example result:
PrinterName
Orientation
PaperSize
Copies
DefaultSource
PrintQuality
Color
YResolution
FormName

Query printer name:

MBS( "DynaPDF.Print.GetSetting"; "PrinterName" )

Query orientation:

MBS( "DynaPDF.Print.GetSetting"; "Orientation" )

// returns 1 for portrait or 2 for landscape

Example result: 1

Query paper size:

MBS( "DynaPDF.Print.GetSetting"; "PaperSize" )

Query copies:

MBS( "DynaPDF.Print.GetSetting"; "Copies" )

Query default source:

MBS( "DynaPDF.Print.GetSetting"; "DefaultSource" )

Query print quality:

MBS( "DynaPDF.Print.GetSetting"; "PrintQuality" ) & "x" & MBS( "DynaPDF.Print.GetSetting"; "YResolution" )

Example result: 600x600

Query color mode:

MBS( "DynaPDF.Print.GetSetting"; "Color" )

Example result: 2

Query form name:

MBS( "DynaPDF.Print.GetSetting"; "FormName" )

Example result: A4

See also

Release notes

Blog Entries

This function is free to use.

Created 9th August 2021, last changed 10th August 2021


DynaPDF.Print.GetDevNames - DynaPDF.Print.SetDevMode