Custom Capability

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
Posts: 1
Joined: Fri Feb 07, 2014 11:47 am

Custom Capability

Post by Ipdan6 » Fri Feb 07, 2014 12:08 pm


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

Site Admin
Posts: 1588
Joined: Thu Jul 10, 2008 2:21 pm

Re: Custom Capability

Post by Alex » Fri Feb 14, 2014 1:41 pm

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

Post Reply