- Re: Select twain source
- Posted by Andy Spragg on July 28th, 2003
I don't know the first thing about ocx controls but I do know about
TWAIN which is what your scanners are actually using. I also don't
understand your question. First you ask:
"how to select the source ... with out asking the user"
and then you say that you want:
"the user can select what twain object they want to use"
Unless I'm being particularly stupid (always a possibility) these two
objectives sound 100% in conflict with each other.
There /is/ such a thing as a default TWAIN source - it is whichever
source was last used by a TWAIN-compliant application - but what do
you actually want?
t_karlsson72@hotmail.com (TK) pushed briefly to the front of the queue
on 26 Jul 2003 20:09:52 -0700, and nailed this to the shed door:
^ Does anyone out there know how to select the source that the
^ ImgScan.ocx control will use with out asking the user? I'm writing a
^ program where I would like to provide an options page where the user
^ can select what twain object they want to use in this program no
^ matter what the default is (if there is such a thing as a default
^ twain source) on the computer. As it is now, I have to popup the
^ "pick scanner" box every time to make sure they get the correct
^ scanner. I've looked in the registry to see if I can find something
^ to change there, but nothing seems to work.
^
^ I appreciate any help,
^
^ TK
Andy
--
"No, you claim the magpie is to blame for all the
worlds ills, based on your ignorance of magpies."
(4a7391c12e538ef306d33d71c9482221@TeraNews)
Malcolm@malcsplace.com
- Posted by TK on August 4th, 2003
I might not have been completely clear. My program has two areas
where it can retrieve data from a twain source. One is scanning
documents, and one is taking pictures. I provide an options page
where the user picks the twain source for the picture and the twain
source for the document. Then when the user needs to scan a document,
I need to programatically select the scanner, and when they want to
take a picture, I need to pick the camera. I hope that clarifies it a
bit.
You did mention that the is a default twain. Is there a way to change
it without actually having to scan?
I appreciate your input,
TK
sparge@globalnet.co.uk (Andy Spragg) wrote in message news:<3f259cba.1351579@news.global.net.uk>...
- Posted by Andy Spragg on August 4th, 2003
Hmm. I think I see what you want now. We-ell ... TWAIN allows an app
to query and get names for, programmatically, all the TWAIN sources
available to it. This array of names can be displayed to the user in
your interface, rather than popping up the Select Source dialogue.
Similarly, TWAIN allows any specific TWAIN source to be selected,
programmatically, by an app once it has established what its options
are. Also to select any specific TWAIN source to be the default,
programmatically.
How you do all this with an OCX control I have no idea :-)
t_karlsson72@hotmail.com (TK) pushed briefly to the front of the queue
on 3 Aug 2003 17:00:53 -0700, and nailed this to the shed door:
^ I might not have been completely clear. My program has two areas
^ where it can retrieve data from a twain source. One is scanning
^ documents, and one is taking pictures. I provide an options page
^ where the user picks the twain source for the picture and the twain
^ source for the document. Then when the user needs to scan a document,
^ I need to programatically select the scanner, and when they want to
^ take a picture, I need to pick the camera. I hope that clarifies it a
^ bit.
^
^ You did mention that the is a default twain. Is there a way to change
^ it without actually having to scan?
^
^ I appreciate your input,
^
^ TK
^
^
^ sparge@globalnet.co.uk (Andy Spragg) wrote in message news:<3f259cba.1351579@news.global.net.uk>...
^ > I don't know the first thing about ocx controls but I do know about
^ > TWAIN which is what your scanners are actually using. I also don't
^ > understand your question. First you ask:
^ >
^ > "how to select the source ... with out asking the user"
^ >
^ > and then you say that you want:
^ >
^ > "the user can select what twain object they want to use"
^ >
^ > Unless I'm being particularly stupid (always a possibility) these two
^ > objectives sound 100% in conflict with each other.
^ >
^ > There /is/ such a thing as a default TWAIN source - it is whichever
^ > source was last used by a TWAIN-compliant application - but what do
^ > you actually want?
^ >
^ > t_karlsson72@hotmail.com (TK) pushed briefly to the front of the queue
^ > on 26 Jul 2003 20:09:52 -0700, and nailed this to the shed door:
^ >
^ > ^ Does anyone out there know how to select the source that the
^ > ^ ImgScan.ocx control will use with out asking the user? I'm writing a
^ > ^ program where I would like to provide an options page where the user
^ > ^ can select what twain object they want to use in this program no
^ > ^ matter what the default is (if there is such a thing as a default
^ > ^ twain source) on the computer. As it is now, I have to popup the
^ > ^ "pick scanner" box every time to make sure they get the correct
^ > ^ scanner. I've looked in the registry to see if I can find something
^ > ^ to change there, but nothing seems to work.
^ > ^
^ > ^ I appreciate any help,
^ > ^
^ > ^ TK
^ >
^ >
^ > Andy
Andy
--
"No, you claim the magpie is to blame for all the
worlds ills, based on your ignorance of magpies."
(4a7391c12e538ef306d33d71c9482221@TeraNews)
Malcolm@malcsplace.com
- Posted by CSM1 on August 5th, 2003
Have you been to the source for all TWAIN information?
http://www.twain.org/
--
CSM1
http://www.carlmcmillan.com
--
"Andy Spragg" <sparge@globalnet.co.uk> wrote in message
news:3f2ed14b.826611@news.global.net.uk...