Select twain source as a html drop down menu
Posted: Wed Jul 16, 2014 5:43 pm
Hello,
I am new to gdPicture and I have a requirement to show the select twain source as a drop down menu in the html page. I use javascript to deal with all the gdPicture stuff. This menu should list all the sources that are available. For example, on my machine the html drop down menu should be like :
1. SPOT basic 5.1 standard (default selected)
2. SPOT advanced 5.1
3. Twain sample DS virtual scanner
I was able to select the default source as virtual scanner using -
m_GdPictureImaging.TwainOpenDefaultSource(0); it directly opens up the UI for virtual scanner and lets me upload the image.
The requirement also states that as soon as I change the selected option from the drop down to any other option it should the rekindle the function acquireTWAINAdf() and change the selected source to the one selected from the html drop down menu and show the UI for aquiring image from there.
Please help me out with a code sample.
I am new to gdPicture and I have a requirement to show the select twain source as a drop down menu in the html page. I use javascript to deal with all the gdPicture stuff. This menu should list all the sources that are available. For example, on my machine the html drop down menu should be like :
1. SPOT basic 5.1 standard (default selected)
2. SPOT advanced 5.1
3. Twain sample DS virtual scanner
I was able to select the default source as virtual scanner using -
m_GdPictureImaging.TwainOpenDefaultSource(0); it directly opens up the UI for virtual scanner and lets me upload the image.
The requirement also states that as soon as I change the selected option from the drop down to any other option it should the rekindle the function acquireTWAINAdf() and change the selected source to the one selected from the html drop down menu and show the UI for aquiring image from there.
Please help me out with a code sample.