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:
11.4
11.5
12.0
12.1
12.2
12.3
12.4
12.5
13.0
13.1
Statistic
FMM
Blog
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 |
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
- DynaPDF.Print
- DynaPDF.Print.GetDevMode
- DynaPDF.Print.GetDevNames
- DynaPDF.Print.SetDevMode
- DynaPDF.Print.SetSetting
Release notes
- Version 11.4
- Added DynaPDF.Print.GetSetting and DynaPDF.Print.SetSetting functions.
Blog Entries
This function does not need a paid license.
Created 9th August 2021, last changed 10th August 2021
