VintaSoft Twain .NET SDK Discussions

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

Board index < VintaSoft Twain < VintaSoft Twain .NET SDK Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

Custom Capability



Custom Capability

Post by Ipdan6 »

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:
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


Re: Custom Capability

Post 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


Page 1 from 1: 1