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:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Sets a device property value.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WIA | 6.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example | Flags |
---|---|---|---|
Device | You can pass index of device to check them in a row. Or pass name or unique ID of device. Pass empty string for current device. |
"" | |
Key | The property key. | "Horizontal Resolution" | |
Value | The value to use. | 300 | |
Type | The data type to use. By default if empty or auto, we detect it based on the type of the existing property. Can be Boolean, Int16, Int32, Int64, UInt16, UInt32, UInt64, String or Double. |
"Int32" | Optional |
Returns OK or error.
Set to scan all pages:
MBS( "WIA.SetDevicePropertyValue"; ""; 3096; 0)
Set media type to file:
MBS( "WIA.SetDevicePropertyValue"; ""; "Media Type"; 2)
Set page size to A4:
MBS( "WIA.SetDevicePropertyValue"; ""; "Page Size"; 0)
Request feeder with duplex:
MBS( "WIA.SetDevicePropertyValue"; ""; "Device Handling Document"; 5 ) // 1 for feeder + 4 for duplex
Request to keep one page in memory:
MBS( "WIA.SetDevicePropertyValue"; ""; "Pages"; 1 ) // keep one page in memory
Created 10th November 2016, last changed 15th November 2019
WIA.SetCurrentDevice - WIA.SetItemPropertyValue
Feedback: Report problem or ask question.