Acquire more than one page - with user-interaction
Posted: Tue Aug 13, 2013 10:20 am
Hello
I have a question to the "Acquire"-process - like your example:
I want create a user-dialog, that asks the user after every acquired page "scan complete? or another page...." - and if the user press the button "scan complete", the application saves the current document; if the user press the button "another page / or next page" the acquire-process should be continued.
How can I solve this issue?
Please have you a clue for my question?
Many thanks in advance for any help & best regards
Michael
I have a question to the "Acquire"-process - like your example:
Code: Select all
....
.....
AcquireModalState acquireModalState = AcquireModalState.None;
int imageIndex = 0;
do
{
acquireModalState = device.AcquireModal();
switch (acquireModalState)
{
case AcquireModalState.ImageAcquired:
// save image to file
device.AcquiredImages.Last.Save(multipageTiffFilename);
// output current state
Console.WriteLine(string.Format("Image{0} is saved.", imageIndex++));
break;
case AcquireModalState.ScanCompleted:
// close device and device manager
CloseDeviceAndDeviceManager(deviceManager, device);
// output current state
Console.WriteLine("Scan completed.");
break;
case AcquireModalState.ScanCanceled:
// close device and device manager
CloseDeviceAndDeviceManager(deviceManager, device);
// output current state
Console.WriteLine("Scan canceled.");
break;
case AcquireModalState.ScanFailed:
// close device and device manager
CloseDeviceAndDeviceManager(deviceManager, device);
// output current state
Console.WriteLine(string.Format("Scan failed: {0}", device.ErrorString));
break;
}
}
while (acquireModalState != AcquireModalState.None);
....
....
How can I solve this issue?
Please have you a clue for my question?
Many thanks in advance for any help & best regards
Michael