WIADemo | Windows WIA Scanner Demo in C
kandi X-RAY | WIADemo Summary
kandi X-RAY | WIADemo Summary
An example of opeerating a document scanner from C# and windows forms, directly through the WIA COM interface.
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 WIADemo
WIADemo Key Features
WIADemo Examples and Code Snippets
Community Discussions
Trending Discussions on WIADemo
QUESTION
I'm currently developing a module where a user can scan documents and save them. currently, the working code that is being used is from Jeske, from GitHub (link is here). The scanner that the customer is using is : Epson Perfection V600. The earlier mentioned code is working like a charm, expect for 1 situation: If the scanner goes into sleep/inactive mode and the user tries to scan a document while in that state, the application will freeze itself while waiting for the scanner to respond ( sometimes it does and sometimes it doesn't). To be exact, the program freezes at this particular line:
...ANSWER
Answered 2019-Feb-01 at 19:57you can use concurrency to prevent blocking. If you also use CancellationToken with CancellationTokenSource whenever the operation does not ends, you can send cancel signal to your funtion so the scanning operation will be aborted.
QUESTION
I am using WIA Demo "C:\LEADTOOLS 19\Examples\DotNet\CS\WiaDemo"
for scanning multiple documents(put two documents in scanner).
When I scanned two documents then it only saves
one document in output folder. During scanning it shows(scanning 1 and then scanning document 2 but output will be only 1 document in folder)
Any idea, what am I missing ?
Note:
- If I scan these two documents with same scanner using its utility
instead of Leadtools then it generate two images successfully.
- Generated image using Leadtools SDK only contain image of 1 document.
- I am using C#, Visual Studio 2017
ANSWER
Answered 2017-Sep-14 at 15:04From the comments, it appears you found the cause of the behavior. Our LEADTOOLS SDK is capable of saving single-page and multi-page files in dozens of different formats. If you want to check whether the saved TIFF file contains multiple pages, you can see its file info using our main demo. To do that, use the File => Open dialog box, click on the image file then click the "info" button at the top right corner of the dialog. This should tell you the file's format and how many pages it has.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install WIADemo
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