Why use a
for each
loop if you don't use
Property
in the loop ?
foreach (Property item in scannerDevice.Items[1].Properties)
Quote:
I just don't understand why it is giving me that because it scans all the documents, and then it throws that.
You continuously scan all sheets of paper without checking if there is something to scan and you wonder why you get an exception when feeder is empty and nothing to scan ? Serious ?
Do you expect you code to stop scanning magically ?
Either you handle the exception or you test if there is something in the feeder.