Contact us


All times are UTC - 8 hours



   [ 4 posts ] 
Author Message
   


Joined: Thu Aug 03, 2017 2:43 am
Posts: 12
Hello,

we try to use the custom caps negociation. However, we always get false return of func CapSet(), while the value of CapGet() is everythiong OK.

the code is like the following:

DWObject.Capability = 0x803F;
DWObject.CapGet();
var numofitems = DWObject.CapNumItems
var item = DWObject.GetCapItems(1)
var currentIndex = DWObject.CapCurrentIndex
alert('The num of the enumeration is ' + numofitems);
alert('The value of index 1 of the capability is ' + item);
alert('The current index of the capability is ' + currentIndex);
DWObject.CapCurrentIndex = 0;
var returnCode = DWObject.CapSet()
if (returnCode)
alert("Successful");
else
alert("Source doesn't support this capability");


I also use the online demo in dynamsoft. It got a error msg: Data parameter out of supported range.

This 0x803F cap is enumeration type, with 2 items (0 , 1)


User avatar
   


Joined: Tue Mar 08, 2005 12:23 am
Posts: 1706
Hi Ericguo,

Thanks for contacting Dynamsoft.

I can't find 0x803F in the TWAIN specification nor in the list of capability our SDK supports. Could you double check the value in this demo?

Regards,

_________________
Vincy
Dynamsoft Support Team
Follow us@Twitter, Facebook


   


Joined: Thu Aug 03, 2017 2:43 am
Posts: 12
Finally, I found out the solution. Just share to others with same problem

Use onevalue instead of enumeration type when setting Custom Caps.


User avatar
   


Joined: Tue Mar 08, 2005 12:23 am
Posts: 1706
Hi Erikguo,

Thanks for sharing.

Regards,

_________________
Vincy
Dynamsoft Support Team
Follow us@Twitter, Facebook


Display posts from previous:  Sort by  
   [ 4 posts ] 


Who is online

Users browsing this forum: WillieCam and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Copyright © 2018 Dynamsoft | All Rights Reserved
dynamic designed by Dynamsoft team