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

Notification

Icon
Error

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

STech  
STech

Groups: Registered
Posts: 6


Hi

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.

-------------------------------

<p>&lt;html&gt;<br>
&lt;head&gt;<br>
&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;title&gt;Testing&lt;/title&gt;<br>
&lt;/head&gt;<br>
<br>
&lt;SCRIPT LANGUAGE=&quot;VBScript&quot;&gt;<br>
Sub cmdScan_onclick<br>
&lt;!--<br>
Set oScan = CreateObject(&quot;LEADRasterTwain.LEADRasterTwain.140&quot;)<br>
if oScan is nothing then<br>
alert(&quot;Object not created&quot;)<br>
else<br>
if oScan.IsAvailable(0) Then<br>
oScan.InitSession(0)<br>
oScan.EnableMethodErrors = False<br>
oScan.SelectSource() <br>
oScan.EndSession()<br>
end if<br>
end if<br>
End Sub<br>
--&gt;<br>
&lt;/SCRIPT&gt;<br>
<br>
&lt;body&gt;<br>
&lt;P&gt;Scanning Control&lt;/P&gt;<br>
&lt;P&gt;<br>
&lt;object classid=&quot;clsid:00140708-B1BA-11CE-ABC6-F5B2E79D9E3F&quot;
id=&quot;LEADRasterView1&quot; data=&quot;DATA:application/x-oleobject;BASE64,CAcUALqxzhGrxvWy552ePwICAADYEwAA2BMAABMA7OnYAAMAAQAAAAMAAQAAAAMAAAAAAAkAAAAAAAAAAAAAAAAAAAAAAAsA//8EAAAAAAAEAAAAAAAEAAAAAAAEAAAAAAADAAMAAAALAP//CwD//wsA//8LAAAACwD//wMAAAAAAAMAAAAAAAMAAAAAAAQAAADIQgsAAAADAAAAAAALAAAAAgAAAAIAZAACAAAACwD//wMAAAAAAAsAAAAEAAAAAAATAAAAAAADAAAAAAAEAAAAAAATAP///wATAICAgAADAAAAAAAEAAAAAAATAP///wATAICAgAALAAAACwD//wQAAAAAAAQAAAAAAAQAAAAWQwQAAAAWQxMA/wAAAAgAFAAAAFAAYQBuAFcAaQBuAGQAbwB3AAAACwD//wMAAAAAAAMAAAAAAAMAAAAAAAMAAAAAAAkAAAAAAAAAAAAAAAAAAAAAAAkAAAAAAAAAAAAAAAAAAAAAAAIAAAADAOgDAAADAAAAAAADAOgDAAADAAAAAAATAAAA/wATAAAAAAACABAAAwAAAAAAEwAAAAAAEwAAAAAAAgABAAIABQACAAAAAgAAABMAAAAAAAIAAAALAP//AgABAAsAAAADAAAAAAALAAAAAgAAAAIAAQACAAEACwAAAAsA//8LAP//CwAAAAIAAAACAGQAAgAAAA==&quot;&gt;<br>
&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;<br>
<br>
&lt;P&gt;&lt;INPUT TYPE=&quot;button&quot; NAME=&quot;cmdScan&quot; VALUE=&quot;Scan&quot;&gt;&lt;/p&gt;<br>
&lt;/body&gt;<br>
&lt;/html&gt;<br>
&nbsp;</p>
 

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)

Hello,

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:
http://support.leadtools.com/SupportPortal/cs/forums/7732/ShowPost.aspx

Thanks,
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.085 seconds.