 |
|
 |
i have a web application in asp.net, i want when the user press scan button a picture from scaner scaned and show the picture in IE.
|
|
|
|
 |
|
 |
I want to develop a web application using asp.net(C#) that can take an image from a scanner (Microtek: scanmaker 1000XL). when a "Scan" button is clicked then the application will capture the image from the scanner. The scanner is Twain compatible. Can I get any sample codes for this web application. Any help would be appreciable.
Platform: windows XP sp3
32 bit
I found a sample in the link
.NET Web Twain[^]
But it doesn't work.
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Hi,
Thanx for the code.But i have a question : what should i do to make this code work under windows 2003 server sp2?Is there any way?
thanx
|
|
|
|
 |
|
 |
I found that .net usercontrols could be hosted in asp.net website via code access security, however, the dll(s) would reside on the server and have to be downloaded. This isn't practicle when you are using a heavy 3rd party library. The trick is to wrap the .net user control in a COM visible activeX object. This requires that browser security settings must be lowered, but it does allow the control to reside on the client.
Cheers.
|
|
|
|
 |
|
 |
can u please help me how to modify your code to make it work for multi page scaning. Like this ArrayList pics returns count 1.
|
|
|
|
 |
|
 |
ok i found it capacity to -1
|
|
|
|
 |
|
 |
Can you please tell me on which class I have to set the capacity to -1 for multiple-page scanning? Any information you can provide will be appreciated. Thank you.
|
|
|
|
 |
|
 |
this is very old article, kindly use WIA
|
|
|
|
 |
|
 |
I'm looking for a good web based TWAIN scanning solution, and this could be what I'm looking for. However, I'm having trouble setting it up. Do I need to set each component up as a separate site in IIS?
|
|
|
|
 |
|
 |
I get an access denied error for the following line in testscan
window.open('file:///C:/TZTwain/TZTwain.exe',1);
I've given all the permisions I can to this file, but I still get it. Any ideas?
Thanks,
Sam
|
|
|
|
 |
|
 |
I'm guessing you're running Microsoft Windows Vista. If so, the solution has two parts:
1) Modify the runApp function in default.aspx (testscan directory) so the javascript reflects the following...
<script language="javascript" type="text/javascript">
function runApp()
{
var browser=navigator.appVersion;
if (browser.indexOf("Windows NT 5.2")>-1)
{
runAppXP();
}
else if (browser.indexOf("Windows NT 5.1")>-1)
{
runAppXP();
}
<code>else if (browser.indexOf("Windows NT 6.0")>-1)
{
runAppXP();
}</code>
else
{
window.open('file:///C:/TZTwain/TZTwain.exe',1);
}
}
function runAppXP()
{
var shell = new ActiveXObject("WScript.shell");
shell.run("c:\\tztwain\\tztwain.exe", 1, true);
}
</script>
2) In Internet Explorer, click on Tools -> Internet Options -> Security Tab and then under "Security level for this zone" click Custom Level... Locate the "ActiveX controls and plug-ins" section and then set "Initalize and script ActiveX controls not marked as safe for scripting" to "Prompt" which will force IE to prompt you for approval when an ActiveX control that is not marked as safe (such as WScript) attempts to be called.
|
|
|
|
 |
|
 |
My dear brother my OS is XP and i have all security setting enable for active X and plugins but still not working farrukh from pakistan
|
|
|
|
 |
|
 |
hello mr taha amin.
thank u for your god project.
its working like engine of benze.
MEGSI.
Ali Azhdari
|
|
|
|
 |
|
 |
hi , i am ali azhdari from iran.
your code dont work.
actualy i must ask about your web service.
if you can give me another helps to do it , i'm be very happy and i must say thank you to you for your god work.
i'm like you have a project but can't buy components, i see it in som place ( use win app to can and transfer to webapp but i must be quick) ,
i need it imeadietly.
thank you.
ali azhdari
|
|
|
|
 |
|
 |
Hi Friend
When i click on scan button this error is activate
Microsoft JScript runtime error: Automation server can't create object
this error is in this part of program:
var shell = new ActiveXObject("WScript.shell");
help me to solve this problem
thanks alot
Fahim_62
|
|
|
|
 |
|
 |
WORKAROUND:
In Internet Explorer, click on Tools -> Internet Options -> Security Tab and then under "Security level for this zone" click Custom Level... Locate the "ActiveX controls and plug-ins" section and then set "Initalize and script ActiveX controls not marked as safe for scripting" to "Prompt" which will force IE to prompt you for approval when an ActiveX control that is not marked as safe (such as WScript) attempts to be called.
|
|
|
|
 |
|
 |
hello,
i get same error and apply solution what you have suggested
but it still give same error
|
|
|
|
 |
|
 |
Hi there , this is mahmoud ramzy , we are Egyptians , Happy Eid to you and your family.
I tried to run your scanning demo , but really not worked.
I'm using asp.net2.0 with Visual Studio 2005
so if you can provide help , please dot it.
I want to scan images and return file path , also run the scanner program at the client side. please help me , please.
thanks again for your co-operation .
Slamo Alikum.
Mahmoud Ramzy
|
|
|
|
 |
|
 |
I'dont understend like to insert this in my web application. Help me,
thanks
|
|
|
|
 |
|
 |
hi to all,
i have a scanning application in vb.net.now i am creating Asp.net web application to do so?
is it possible to use the window application in asp.net web application?
if ,yes .please tell me how to do this?
hhhhhhhhhh
|
|
|
|
 |
|
 |
hi,
i want ot make a web application in asp.net to scan document by scanner ?
how can i do this?
hhhhhhhhhh
|
|
|
|
 |
|
 |
Hi '
I am in the process of developing a web based scanning application using ,ASP.NET c Sharp. I need help, kindly guide me how to implement it.;)
Thanks,
Ali
Life is too short to be counted, enjoy life.
|
|
|
|
 |
|
 |
Hello,
I am using Mozilla Firefox and code gives exception. Perhaps shell.run is only available in case of Internet Explorer. What is shell.run equivalent in Mozilla (firefox).
Regards,
Javad MEhmood
Javad Mehmood
|
|
|
|
 |