Page 1 of 1

Custom Capability

Posted: Fri Feb 07, 2014 12:08 pm
by Ipdan6

I'm using a Kodak i1220 Scanner and try to set set the custom capability "Doublefeedstop" (32854). Important to know is that this capability is not readable. But i have to set.
My try:

Code: Select all

DeviceCapability doubleFeed = device.Capabilities.Find(32854);
if (doubleFeed != null)
   doubleFeed.SetValue(1);   // i also have tried with true instead of 1

When it comes to the SetValue(1) i get the exception "Cannot get value of capability" this is right because the capability is not readable but i just want to set a value.

Someone an idea how to set the value without reading it?

Many thanks

Re: Custom Capability

Posted: Fri Feb 14, 2014 1:41 pm
by Alex
Hello Daniel,

The DeviceCapability.SetValue() method retrieves value of capability (this is necessary for detecting the capability value type) and only when sets the capability value. We will improve our algorithm in near time and SDK will be able to set value of write only capability.

Best regards, Alexander