Skip to main content

Microsoft Silverlight

Answered Question TWAIN / Document Scanning, is it possible?RSS Feed

(0)

DavidReid123
DavidRei...

Member

Member

2 points

5 Posts

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

IanBlackburn
IanBlack...

Contributor

Contributor

2317 points

368 Posts

Answered Question

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

DavidReid123
DavidRei...

Member

Member

2 points

5 Posts

Re: TWAIN / Document Scanning, is it possible?

Hi Ian,

Thanks, I thought as much.

Thanks for your help.

David

DavidReid123
DavidRei...

Member

Member

2 points

5 Posts

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

IanBlackburn
IanBlack...

Contributor

Contributor

2317 points

368 Posts

Answered Question

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

DavidReid123
DavidRei...

Member

Member

2 points

5 Posts

Re: TWAIN / Document Scanning, is it possible?

Ian, again thanks for your help.

Thanks
David

vitor_canova
vitor_ca...

Member

Member

152 points

41 Posts

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
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities