Skip to main content
Home Forums Silverlight Programming Programming with .NET - General TWAIN / Document Scanning, is it possible?
6 replies. Latest Post by vitor_canova on January 10, 2009.
(0)
DavidRei...
Member
2 points
5 Posts
01-05-2009 7:56 AM |
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.
ThanksDavid
IanBlack...
Contributor
2333 points
371 Posts
01-05-2009 8:45 AM |
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.
01-05-2009 9:03 AM |
Hi Ian,
Thanks, I thought as much.
Thanks for your help.
David
01-05-2009 9:14 AM |
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
01-05-2009 9:21 AM |
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
01-05-2009 9:49 AM |
Ian, again thanks for your help.
vitor_ca...
152 points
41 Posts
01-10-2009 6:22 AM |
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.