twaindotnet | Thomas Scheidegger 's excellent article
kandi X-RAY | twaindotnet Summary
kandi X-RAY | twaindotnet Summary
This project is based off the code from Thomas Scheidegger's excellent article on The Code Project: Also check out another alternative library: NTwain.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of twaindotnet
twaindotnet Key Features
twaindotnet Examples and Code Snippets
Community Discussions
Trending Discussions on twaindotnet
QUESTION
I have a project in which I use a backgroundworker to do the scanning function from a scanner asynchronously by WIA2. It works well with WIA.
Now I am trying to do the same by scanning with TWAIN. I can scan using TWAIN ok. However when I try to make it work in the background I cannot make it work properly since the event of scanning in TWAIN have a TransferImage handler and a ScanningComplete event handler which get aroused when the scan finishes. The transferImage is ok since it does not affect my background event. However I want to access a panel in the scanningComplete event, make it .Visible = False
A piece of what happens:
...ANSWER
Answered 2019-Dec-04 at 08:52Thank @JQSOFT, As you said I had to use a delegate sub to do handle the panel visibility. Here is the change in the code:
QUESTION
I wish to operate a scanner using a windows service hosting a web API. The reason I am doing so is to be able to operate the scanner from javascript using ajax and I do not wish to use ActiveX.
So I built a Windows Service hosting a Web API. I tried for the web API to start a scan application (had to bypass the UAC for this) but I run into a consistency issue (sometimes it worked and sometimes not).
So for now the controller of the web API has the code to start scanning built into it (instead of an external application). The problem is that I don`t have a handle to give the twain wrapper (it needs it for the windows message hook).
I tried to take the current process MainWindowHandle and even tried something silly as taking iexplore MainWindowHandle and I get an exception "Error initialising DSM".
As a twain library I use TwainDotNet
The code for doing is:
...ANSWER
Answered 2018-Feb-18 at 13:28Well I found an answer to this one. I used an ApplicationLoader class code from this URL.
The code I use to get the good handle is:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install twaindotnet
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page