Scanner device is use in C# using Asp.net page 2.0

J

jsr.ajay

Hello, sir
I my self ajay choudhary .I am a C# .Net programmer .
I am developing an asp.net application that is using in Scanner
device .
but how can write the code i don't know.

Explanation of the code:
an asp.net page we need a button,
if i click the button then it call the scanner
after the scan the image is attached to the web page.

we need to asp.net code that will run on clien side also..

system details

OS: Xp pack 2
Ram:512
Visual Basic .Net 2.0
frameWork 2.0


plz help for this problem

regards.............
ajay choudhary
 
J

Jon Skeet [C# MVP]

I my self ajay choudhary .I am a C# .Net programmer .
I am developing an asp.net application that is using in Scanner
device .

Um, is the scanner on the client or the server? You can't run code
(beyond JavaScript etc) on the client.
 
M

Marc Gravell

If you have reasonable knowledge about the clients (i.e. a corporate
LAN), then you can do this using a client-side OCX hosted on the page
(OBJECT tag) that talks to the scanner (it would also need to talk
directly to the server over HTTP - not the HTML page). I've use
ImageMan TWAIN to do this in the past (for a document management
system), but any similar (including perhaps WIA) would suffice.

This will only work in IE, and would require the OCX to either be
signed, or to be pre-installed on the client (the latter is easier);
and (in either event) marked safe-for-activation, safe-for-scripting.
(or whatever the keywords are; it has been about 5 years since I did
this...).

If I was doing this today, I would perhaps write a smart-client (exe)
that hosts a WebBrowser to show the existing app, and perhaps makes
scanning available via the "external" object(ObjectForScripting or
some-such).

Marc
 
M

Marc Gravell

I've use ImageMan TWAIN to do this in the past
To clarfy - I wrote an OCX (using VB6 at the time) that *internally*
used ImageMan TWAIN and provided a UI etc; I didn't host ImageMan
TWAIN on the page itself.

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top