Page 1 of 1

scanning twain via silverlight

Posted: Mon Apr 02, 2012 10:37 am
by ara
Hi,
I tried to use scan twain in silverlight project.
I can`t use gdpicture dlls in silverlight.
How can I do it? there is a way?
there is no simples for such a thing in your simples folder.

thank you!

Re: scanning twain via silverlight

Posted: Tue Apr 03, 2012 3:36 pm
by Loïc
Hello,

Please find attached a Silverlight demo to acquire image from TWAIN devices.

Let me know if you have any question.
silverlight-twain-acquisition.zip
TWAIN acquisition in Silverlight and GdPicture.NET 8
(10.77 KiB) Downloaded 561 times
Kind regards,

Loïc

Re: scanning twain via silverlight

Posted: Wed Apr 04, 2012 10:22 am
by ara
First, thanks for the answer.
Secondly, I tried to use the function you sent me, but I got false in this line:

Code: Select all

bool success = oGdPictureImaging.TwainOpenDefaultSource_2(0);
Do you know what could be the problem? What this function checks?

Many thanks.

Re: scanning twain via silverlight

Posted: Wed Apr 04, 2012 4:28 pm
by Loïc
Hello,

You should check the reference guide ;)

You can subsequent use these methods to diagnose the error:

- GetStat()
- TwainGetLastConditionCode()
- TwainGetLastResultCode()

Hope this helps !

Kind regards,

Loïc

Re: scanning twain via silverlight

Posted: Tue Jan 16, 2018 9:31 am
by paen45
Hello...

I am making a Silverlight application that necessities to speak with a scanner (utilizing TWAIN drivers)...., I know Silverlight can't do this straightforwardly.., and I should utilize Java to communicate with the scanner.

Re: scanning twain via silverlight

Posted: Wed Jan 17, 2018 11:53 am
by lucas78
Hey, this problem is also with me. thanks for the post,
i hope it may be helpfull for me......

Re: scanning twain via silverlight

Posted: Wed Feb 14, 2018 10:01 am
by paen45
lucas78 wrote:
Wed Jan 17, 2018 11:53 am
Hey, this problem is also with me. thanks for the post,
i hope it may be helpfull for me......

:)