Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Friday, February 2, 2007 12:09:15 AM(UTC)


Groups: Registered
Posts: 6


I have installed the Raster Imaging Pro Eval 14.5 and like to test the scanning of imaging in IE7.
I wrote and tried the html page (see sample below).

However one of the LEADRasterTwain methods IsAvailable(Hwnd) require a window hwnd.
I tried to pass 0 to indicate a desktop window, but it give error.

I like to know whether this is the correct way to use the controls in web page?
Is there any sample on using the scanning controls in web page?

FYI, we are currently planning to add scanning feature in our webs application and like to evaluate which scanning tools is suitable.

Appreciate your help.


&lt;meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage 5.0&quot;&gt;<br>
&lt;meta name=&quot;ProgId&quot; content=&quot;FrontPage.Editor.Document&quot;&gt;<br>
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1252&quot;&gt;<br>
&lt;SCRIPT LANGUAGE=&quot;VBScript&quot;&gt;<br>
Sub cmdScan_onclick<br>
Set oScan = CreateObject(&quot;LEADRasterTwain.LEADRasterTwain.140&quot;)<br>
if oScan is nothing then<br>
alert(&quot;Object not created&quot;)<br>
if oScan.IsAvailable(0) Then<br>
oScan.EnableMethodErrors = False<br>
oScan.SelectSource() <br>
end if<br>
end if<br>
End Sub<br>
&lt;P&gt;Scanning Control&lt;/P&gt;<br>
&lt;object classid=&quot;clsid:00140708-B1BA-11CE-ABC6-F5B2E79D9E3F&quot;
&lt;SPAN STYLE=&quot;color:red&quot;&gt;ActiveX control viewer failed to load!-- Please check
browser security settings.&lt;/SPAN&gt;&lt;/object&gt;<br>
&lt;P&gt;&lt;INPUT TYPE=&quot;button&quot; NAME=&quot;cmdScan&quot; VALUE=&quot;Scan&quot;&gt;&lt;/p&gt;<br>

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, February 4, 2007 12:46:33 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)


You have to pass a window handle to the IsAvailable method.
If you are using the LEADRasterView control, you can pass the LEADRasterView.Window property to the IsAvailable method.
You can find a web Twain sample on the following forum:

Maen Badwan
LEADTOOLS Technical Support
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.093 seconds.