soukoku/ntwain

How to hide dialog of device when using NTWAIN with Windows Service?

lnvu1983 opened this issue · 2 comments

Anyone know the way to by pass the dialog of device displayed when scanning? It's ok if there is no problem during scan. But if there is an error (ex: PaperJam or No Paper, ...), this will hang the windows service (the dialog require user to take an action to close)

Sample error dialog of device:

kodak-error

Tks a lot

If the scanner supports it, you can try setting CAP_INDICATORS to false through Capabilities.CapIndicators.SetValue() on the source.

If the scanner supports it, you can try setting CAP_INDICATORS to false through Capabilities.CapIndicators.SetValue() on the source.

Thanksssssssssssss, work like a charm. Love you so much :)