User Interface Wont Close Automatically

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
bsutter
Posts: 2
Joined: Thu Dec 08, 2011 9:28 pm

User Interface Wont Close Automatically

Post by bsutter » Thu Dec 08, 2011 9:42 pm

I'm working on a WPF app with the latest Twain SDK.
Scanning works great - saving to multi-page pdf.

When I use a Canon DR-2580C scanner, after the last page has been scanned, the user interface stays up, even though there are no more pages to scan. If I use a different scanner (HP Officejet) when the scan is complete, the UI automatically goes away. In both cases, the Scan Completed callback gets called. I have to manually click the Cancel button in the UI, or click the close box to close it.

Is there a way in the scan completed callback, I can force the User Interface to close?

Alex
Site Admin
Posts: 1445
Joined: Thu Jul 10, 2008 2:21 pm

Re: User Interface Wont Close Automatically

Post by Alex » Fri Dec 09, 2011 1:37 pm

Hello,

You need to set value of the Device.DisableAfterAcquire property to True.

Best regards, Alexander

bsutter
Posts: 2
Joined: Thu Dec 08, 2011 9:28 pm

Re: User Interface Wont Close Automatically

Post by bsutter » Mon Dec 12, 2011 8:40 pm

That fixed it - thank you

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests