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.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Queries a printer setting.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 11.4 | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |
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" |
Returns value or error.
See also Print function in DynaPDF manual.
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
This function is free to use.
Created 9th August 2021, last changed 10th August 2021