twain_library
twain_library copied to clipboard
How to automatically close the Source UI after the scan is complete?
When I use the DTWAIN_AcquireFile function for acquisition with bShowUI set to true, the Source UI needs to be closed manually after the acquisition is complete. How can I make it close automatically? I didn't use the DTWAIN_SetTwainMode function to set of modal / modeless dialogs.
You can try DTWAIN_SetMaxAcquisitions, and set the maximum number of acquisitions to 1. This should be called before DTWAIN_AcquireFile.
The suggestion of using DTWAIN_SetMaxAcquisitions should solve the issue. Since this issue has been opened for a month, this will be closed.