Forum Replies Created
- AuthorPosts
- March 17, 2006 at 3:53 pm in reply to: New to scanner world, need help on TWAIN scanner standard. #23258
wow. thats quite a request for 3 months…
the 1.9 spec is here
http://twain.org/docs/Spec1_9_197.pdfor if you’re not using the JSE Imaging Solutions product (thanks for the post Kaij – I wish more vendors would plug their product in technical forumns, I’ll return the favor when/if I release a product to compete with yours),
Guest,
The basic capability you’re probably looking for is CAP_XFERCOUNT, look to the 1.9 spec in chapter 9 for details on the setting, but -1 should scan all the pages. You may want to also check CAP_FEEDERENABLED, and CAP_AUTOFEED.Lemme know if you need more,
gabelooks like twain is still included in the vista package:
http://www.microsoft.com/whdc/winhec/trackdetail06.mspx?track=11if you pass ICAP_SUPPORTEDSIZE into
DG_CONTROL / DAT_CAPABILITY / MSG_QUERYSUPPORT and get back something larger than TWQC_GET (bigger than 1)
then try/look into
DG_CONTROL / DAT_CAPABILITY / MSG_SET and pass in ICAP_SUPPORTEDSIZE = A4Letter (1)lemme know if that helps,
gabeRunning twain as service is a bit tricky, and i don’t think all twain devices are good candidates for that setup – this may be one of the reasons that you current isn’t offered as a service.
From the twain spec, twain_32.dll wants a handle to the window calling the dll, and a lot of the requirements for setting up and controling a device via twain has to do with modifying the applications message pump to communicate with twain. the kicker is that windows services don’t by default have a message pump, essage pumps are more typically found in applications that windows.
Running twain as a service is an odd contradiction, running an app to access twain (which requires something typically associated with a window) in an enviroment not really setup to have a window running. Don’t get me wrong, it can be done, but its just going to be a bit odd. My solution was to have the service create a window (that isn’t shown) and using that window’s message pump to communicate with twain.
Then there is a problem with some devices wanting to put up a messagebox, to inform the user that something went wrong. Some devices, when they put up that messagebox, don’t process anything more until the OK button is clicked. They don’t even give the application a return code or condition code that something is wrong, until that messagebox’s OK button is clicked. This too, can be somewhat avoided if you understand the device – or are just dead sure that the device doesn’t put up any messageboxes. I’ve emailed HP to see of that scanner ever puts but messageboxes, and I’ll post their reply if and when i recieve it.Hope that in some way provides a bit of the advise you’re looking for.
gabe
ICAP_AUTOBRIGHT
try posting that question again
sure, mine does.
how come?this is possable, keep googling – i saw a solution (sorry i dont have the link) and the description (far as i remember it) involved some registry editing between loading the devices.
March 16, 2006 at 12:31 pm in reply to: Can TWAIN be used for direct control of scanner head movemen #23266I havent seem any part of the twain spec that deals with the movement you’re talking about
And I’m sorry to say, I don’t know of any other direction to take.
gabe
I’d look into
DG_CONTROL / DAT_CAPABILITY / MSG_QUERYSUPPORT (looking for a return > 1)
then
DG_CONTROL / DAT_CAPABILITY / MSG_GET (looking for a return that represents TRUE)
passing in CAP_DEVICEONLINE both times.I’ve seem rumors that CAP_DEVICEONLINE isn’t reliable, but it seems pretty reliable to me.
gabe
you don’t set it, the DS sets it – it seems to work for me…
…if you’re still having this issue lemme know.March 16, 2006 at 10:43 am in reply to: New to scanner world, need help on TWAIN scanner standard. #23253whats the development enviroment?
- AuthorPosts