Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, January 11, 2007 6:09:03 AM(UTC)
Anathema

Groups: Registered
Posts: 11


Hi,
I develop on VC# and Leadtools 15 (Twain), when I try to set a capability on a source that doen't support it, the system show a manufacturer's dialog windows. How can I remove that dialog?

Thanks,
Davide

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Saturday, January 13, 2007 10:52:34 PM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

Can you please provide me with a code snippet that shows how exact do you set a capability?

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Tuesday, January 16, 2007 11:12:07 PM(UTC)
Anathema

Groups: Registered
Posts: 11


This is an example:

TwainCapability twainCap = new TwainCapability();
twainCap.Information.ContainerType = TwainContainerType.OneValue;
twainCap.Information.Type = TwainCapabilityType.ImageSupportedSizes;
twainCap.OneValueCapability.ItemType = TwainItemType.Uint16;
twainCap.OneValueCapability.Value = imageFormat;
session.SetCapability(twainCap, TwainSetCapabilityMode.Set);

Thanks,
Davide
 
#4 Posted : Wednesday, January 17, 2007 8:34:22 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

You can use the TwainSession.SupportedCapabilities Property to find out if a twain source has support for a certain capability or not, before you try to set its value.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.074 seconds.