Contact us

All times are UTC - 8 hours

   [ 2 posts ] 
Author Message

Joined: Wed Apr 19, 2017 7:50 am
Posts: 1
Our application is currently using Dynamic .NET TWAIN v4.2, and I have downloaded the v6.2 trial in order to evaluate whether the new version fixes some issues we had. The problem I'm now experiencing is that the OnPostAllTransfers event is not being fired, and I'd like to get some help troubleshooting this issue.

Our current code, which is working with v4.2, looks something like this (note: heavily edited to show only the relevant parts):

twainControl.OnPostTransfer += OnPostTransfer;
twainControl.OnPostAllTransfers += OnPostAllTransfers;
twainControl.OnTransferCancelled += OnTransferCancelled;
twainControl.OnTransferError += OnTransferError;

twainControl.IfDisableSourceAfterAcquire = true;
twainControl.IfAppendImage = true;
twainControl.XferCount = -1;
twainControl.IfFeederEnabled = true;
twainControl.IfAutoFeed = true;
twainControl.IfShowUI = false;


As I said, this was working with version v4.2. When I installed v6.2, though, the OnPostAllTransfers event is not getting fired any more. I can see the OnPostTransfer event getting fired after each page is scanned, but I'm not sure how to tell when scanning is complete without the OnPostAllTransfers event.

Eventually our last-resort timeout event triggers and calls twainControl.CloseSource() in order to abort the scan; at this point, the OnPostAllTransfers event does fire. But the event is kinda useless to us if we have to manually trigger it like that.

Is there something I should check to make sure this event gets fired normally after the last page has been scanned?

EDIT: We're using the Wpf version of the control

User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1706
Hi Rogern,

I tried adding this event in our WPF demo app (C:\Program Files (x86)\Dynamsoft\Dynamic .NET TWAIN 6.2\Samples\C# Samples\WpfControlsDemo) and it's triggered. Could you test it with the same scanner you are using? BTW, to close source automatically after acquire, please use IfDisableSourceAfterAcquire.


Dynamsoft Support Team
Follow us@Twitter, Facebook

Display posts from previous:  Sort by  
   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Copyright © 2018 Dynamsoft | All Rights Reserved
dynamic designed by Dynamsoft team
Fatal: Not able to open ./cache/data_global.php