ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Remembering TWAIN Settings

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Elemental Posted - Nov 22 2019 : 11:46:31
I have made posts before about storing TWAIN settings to a local file, but I feel as if I'm doing more work than I'm supposed to. All I want is for my application to remember which TWAIN device was last picked by the user and what their custom settings were.

For example, when I use Twack_32 (by the TWAIN working group), it remembers my last selected scanner and scan settings, without any apparent change to the registry or modifying any local files. How does it do that? I want my application to do that, too.
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 26 2019 : 16:34:08
Hi

The process for that is not part of the Twain standard, so not a method available in ImageEn. There may be a general method to set it in Windows with other Delphi code.

Nigel
Xequte Software
www.imageen.com
Elemental Posted - Nov 25 2019 : 14:12:33
I downloaded the Demos which have been good to see. I had forgotten about those as good resources. Now that I know how to GET the default TWAIN device, how do I make my software SET the default device?
Elemental Posted - Nov 25 2019 : 11:58:36
It seems that Twack_32.exe does more than that. Allow me to elaborate.

The TWAIN driver for my HP 5590 saves settings in presets. These presets are listed in the first tab of the TWAIN dialog. Whenever I use ImageEn to set the TWAIN properties of the scanner, based on settings I saved in a custom text file, the HP driver goes and creates a new preset. If I run my application 20 times, I end up with 20 new presets.

Twack_32, however, doesn't do that. It not only remember which TWAIN device I last selected in that program, but also which preset. It doesn't create new ones or modify old ones. I want my application to do that, too. And I have to believe that Twack_32 was not written just with HP TWAIN drivers in mind. How can I use ImageEn to replicate that functionality?
xequte Posted - Nov 23 2019 : 15:15:14
Hi

Have you set the default source?

https://www.imageen.com/help/TIETwainParams.GetDefaultSource.html

Nigel
Xequte Software
www.imageen.com