You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi @soukoku,
that will be great if you can expose it in the event.
If you can tell me when you are planning to do it then it will be really really helpful for me
I think you can set the number of scans with the CapXferCount property, -1 for continuous scanning and any value for the number of scans and the scanner will stop feeding paper; but for a duplex scanner you need to set it to single-sided scanning mode first, for example my code is as follows:
//set scan numberif(TwainScanNumberSet.Text!=string.Empty&&Int32.TryParse(TwainScanNumberSet.Text,outintTwainScanNumberSetInt)){if(dataSource.Capabilities.CapXferCount.CanSet){if(TwainScanNumberSetInt>0){//set single scan modeif(dataSource.Capabilities.CapDuplex.IsSupported&&!(DoubleScanBox.Checked)){dataSource.Capabilities.CapDuplexEnabled.SetValue(BoolType.False);}dataSource.Capabilities.CapXferCount.SetValue(TwainScanNumberSetInt);}else{dataSource.Capabilities.CapXferCount.SetValue(-1);}}}
I am stopping the scanning by the below code
_twain.TransferReady += (s, ev) => { ev.CancelAll = true; };
this stops the data transfer but still the scanner feeder takes few more pages from Scanner device without sending it to driver.
Is there any way to stop the feeder quickly ?
The text was updated successfully, but these errors were encountered: