Home › Forums › TWAIN Classic › uk.co.mmscomputing twain
- This topic has 3 replies, 3 voices, and was last updated 8 years, 12 months ago by abyiob.
- AuthorPosts
[attachment=0:3t5fynyr]XXCrop.zip[/attachment:3t5fynyr]
Hi,
I am using this mmscomputing library as java applet to scan an image or document.
Using swings,awt i created one scan button which is acquiring scanner by calling scanner.acquire();
and then placing that scanned image into jpanel for displaying.Problem is, first time when i start my applet and hitting my scan button..scanning works fine..
Twain states it goes into are: 3,4,5,6,7,5,4,3then second time,hitting my scan button ..
Twain states it goes into are: 3,4,5,4,3
it’s not going into image transfer ready and transferring state and thus not into below loop
if (type.equals(ScannerIOMetadata.ACQUIRED))
so i am not able to see the new scanned image into my jpanel second time…third time, hitting my scan button .. again it works fine.. getting into all states.
So i mean, alternatively turns or restarting the java applet again ..it’s working..
what would be the issue.. ?
I want, every time when i hit scan button it should get me a new image.. but it’s doing alternative times.
can i forcefully set or change twain states to come in 6th and 7th states..
or is there some twain source initialisation problem, second time
because restarting applet is doing fine…please help me…??
Attached my code..
Thanks..Any solution for this problem…Please help
The problem remains… is there any news?
In the code, if I do setShowUserInterface(false); the issue comes
It its true, no issue…- AuthorPosts