LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: Source enumerations not what the Select Source shows in LeadTools 12 (I've seen it in the LeadTo
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, August 1, 2006 11:26:31 AM(UTC)
Groups: Registered
Posts: 9
So, when enumerating Twain sources these days the LeadTools function L_TwainEnumSources will show, for instance: EPSON Perfection 3170. I choose to set properties with that name and it forces the pop-up instead on acquire. The pop-up for selecting the twain shows: EPSON Perfection 3170 2.65 (32-32).
Now, if I programmatically set the source name to the EXACT string shown above that the Select shows (to try to get around the pop-up), it still fails and the pop-up shows the list of twain devices with one of the choices being the aforementioned EPSON Perfection 3170 2.65 (32-32) string....
Any idea what causes this? Just for FYI, I have a LeadTools 14.5 program that uses the VCL component that demonstrates this exact behavior as well.
#2
Posted
:
Thursday, August 3, 2006 9:58:26 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
L_TwainEnumSources is no longer a supported function. It was replaced by L_TwainGetSources. This function basically uses a callback function to give you the information for each TWAIN driver installed on your machine. Based on the information this function returns to you, you can set the device programmatically using L_TwainSelectSource. Set LTWAINSOURCE.pszTwainSourceName equal to the name of the desired device and then pass the address of the LTWAINSOURCE structure for the pltSource parameter in L_TwainSelectSource. Both of the above functions are documented with sample code in the API TWAIN help file.
LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: Source enumerations not what the Select Source shows in LeadTools 12 (I've seen it in the LeadTo
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.