Page view counter
TWAIN / Document Scanning, is it possible? Subscribe to this thread
Last post 01-10-2009 6:22 AM by vitor_canova. 6 replies.
Sort Posts:
01-05-2009 7:56 AM
TWAIN / Document Scanning, is it possible?

Hi everybody,

I am very new to silverlight and was wondering if anyone could help me out. I have been tasked to look into the possibility of createing a web-based document scanning utility in Silverlight. Now in the past we have created a windows desktop application and utilised the TWAIN dll.

I understand that .Net 3.5 doesn't have any built in scanning support, and therefore we would again be required to use TWAIN. I'm just wondering would the be possible in silverlight? Would we have to go down the route of late assembly binding? Or could we potentially make windows API calls?

Really hope somebody can point me in the right direction.

Thanks
David

DavidReid123

Loading...
Joined on 10-09-2007
Posts 5
01-05-2009 8:45 AM
Marked as Answer
Re: TWAIN / Document Scanning, is it possible?

Silverlight is not going to help ypou here I'm afraid - -it has no access to the hardware on the machine, not even the TWAIN drivers since it runs in a sandboxed browser environment.  The best it can do is ask the user to select some from files from the local drive, then process them and perhaps store them in isolated storage.

(If this has answered your question, "Mark as Answer" - many thanks)

Cheers

Ian Blackburn
SilverlightForBusiness.net

IanBlackburn

Loading...
Joined on 06-17-2002
Kent, England
Posts 344
01-05-2009 9:03 AM
Re: TWAIN / Document Scanning, is it possible?

Hi Ian,

Thanks, I thought as much.

Thanks for your help.

David

DavidReid123

Loading...
Joined on 10-09-2007
Posts 5
01-05-2009 9:14 AM
Re: TWAIN / Document Scanning, is it possible?

Sorry, one last question, just noticed WPF applications can be hosted in a web browser. What we are trying to achieve is a cross browser scanning application that our users could use without the requirment of an installed desktop application. Had a quick read about XBAPs and apparently these run in a 'partial trust' sandbox. Unfortunately I cannot find any info on what can and cant be achieved using this 'partial trust' sandbox. Would I assume that this has the same privellages as Silverlight?


Thanks

David

DavidReid123

Loading...
Joined on 10-09-2007
Posts 5
01-05-2009 9:21 AM
Marked as Answer
Re: TWAIN / Document Scanning, is it possible?

No - you will be able to do more with an XBAP app but you are restricted to Windows clients only, and IE and Firefox.

For details on XBAP and code access security see this post: http://scorbs.com/2007/01/10/xbap-trust-levels 

(If this has answered your question, "Mark as Answer" - many thanks)

Cheers

Ian Blackburn
SilverlightForBusiness.net

IanBlackburn

Loading...
Joined on 06-17-2002
Kent, England
Posts 344
01-05-2009 9:49 AM
Re: TWAIN / Document Scanning, is it possible?

Ian, again thanks for your help.

Thanks
David

DavidReid123

Loading...
Joined on 10-09-2007
Posts 5
01-10-2009 6:22 AM
Re: Re: TWAIN / Document Scanning, is it possible?

A few months ago I needed to retrieve an image from Scanner. I searched a lot and the best cost-benefits was buy an ActiveX Control. We bought Dynamic Web Twain

The post helped you? mark as answered

Vitor Canova Weingaertner
Go to my blog
Go to my Site

vitor_canova

Loading...
Joined on 11-01-2008
Porto Alegre
Posts 39
Microsoft Communities