Custom Capability

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

Moderator: Alex

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

Custom Capability

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

Hi

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
Daniel

Alex
Site Admin
Posts: 1443
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

Who is online

Users browsing this forum: No registered users and 1 guest