cyanfish / naps2-wia

Low-level WIA 2.0/1.0 application library for .NET
MIT License
18 stars 5 forks source link

How to display progress bar using naps2-wia? #10

Closed JohnDoe2193 closed 1 year ago

JohnDoe2193 commented 1 year ago

I use Xerox DocuMate 5445. This is a feeder-only document scanner, no flatbed component.

To scan I use the code that comes in naps2-wia Readme.MD pretty much as is. Everything works except I am not sure how to add a progress bar while pages are being scanned. I am using naps2-wia from Windows Forms application (.Net Framework)

Can you help? Thanks.

cyanfish commented 1 year ago

The WiaTransfer object has a Progress event you can listen to, and you can update a WinForms progress bar using that.