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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.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.
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
Created 9th August 2021, last changed 10th August 2021
DynaPDF.Print.GetDevNames - DynaPDF.Print.SetDevMode
Feedback: Report problem or ask question.