Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Problems Getting ActiveX To Work on Client Machines
Started by RLenski at 10-12-2007 16:22. Topic has 7 replies.

Print Search « Previous Thread Next Thread »
  10-12-2007, 16:22
RLenski is not online. Last active: 10/25/2007 10:31:36 PM RLenski

Top 150 Posts
Joined on 02-02-2006
Posts 19
Problems Getting ActiveX To Work on Client Machines
Reply Quote

To All,

I have been trying to get my .asp webpage to work properly on client machines, and have had a lot of problems.  The image viewer works perfectly on my development machine.  The main goal of this webpage is to display tif files from the server on a client machine.  I have made sure that all of the Leadtools codecs, Leadtools.dll, and Leadtools.web.dll are part of the project and website.  I have also made sure that all of the script files are accessed okay from the webpage.  I have made sure that all of the .cab files are acessible, as well as the image file from the website.  From the client machine, if I paste the path to all of the cab files, it attempts to download them, as well as the test image file.  The problems seem to be that the controls don't seem to install properly.  Specifically the raster image viewer doesn't.  I thought maybe it was the license file, so I followed the directions and created a .lpk file with microsoft lpk_tool.  I selected the raster image viewer from the list, and saved it to a ltocx14n.lpk.  I was originally using the ltocx14.lpk that came with leadtools.  That didn't work.  I have tried about everything to make sure that everything follows the leadtools help.  Any help would be greatly appreciated.  I have included my asp pages, as well as the tif file I am using for testing.  Thank you very much in advance.

NOTE: I cannot attach my .zip file to the post.  The file is only 454kb.  I will send it to support@leadtools.com as some posts have suggested.  The file that I am sending is called RLenski-ActiveX_Viewer.zip

Thanks,

Rich


   Report 
  10-16-2007, 5:35
Qasem Lubani is not online. Last active: 8/27/2008 3:13:14 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,034
Re: Problems Getting ActiveX To Work on Client Machines
Reply Quote

If you are using the set of LEADTOOLS Raster COM objects, such as LEADRasterView, LEADRasterIO and LEADRasterVariant, you do NOT need any of our .NET assemblies. This means you should not be deploying Leadtools.dll, Leadtools.Web.dll or anything related to Leadtools.Codecs.*.dll

 

What you need to deploy is the COM files such as LTR14N.DLL, LTRVW14n.ocx and LTRIO14N.DLL, in addition to support files such as lf???14s.dll.

You can find the full list in the help topic "Files to be Included with Your Application" in the LEADTOOLS main COM Objects help file.
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  10-16-2007, 9:49
RLenski is not online. Last active: 10/25/2007 10:31:36 PM RLenski

Top 150 Posts
Joined on 02-02-2006
Posts 19
Re: Problems Getting ActiveX To Work on Client Machines
Reply Quote

Qasem,

 

Thanks for responding to my message.  If you would look at the example file that I sent to the support@leadtools.com email address this is what I have deploying.  You are correct, I was trying to use the leadtools image viewer, but found out that it only supports image file types that are compatible with browsers.  Here is my load section of the .asp file.  I made sure that all of the .cab files are accessible from to the client machine.  As I said, I sent these files along with an example .tif file that I was having problems with.

Thanks,

Rich

<OBJECT classid=CLSID:5220CB21-C88D-11CF-B347-00AA00A28331 align=baseline style="WIDTH: 17px; HEIGHT: 15px"  height=15 width=17 border=0 >
<PARAM NAME="LPKPath" VALUE="http://WebServer/Viewer/Resources/ltocx14.lpk">
<P>Raster1 - This is not supported in web browser.</P>
</OBJECT>
 

<OBJECT ID="Raster" NAME="Raster" CLASSID="CLSID:00140700-B1BA-11CE-ABC6-F5B2E79D9E3F" CODEBASE="http://WebServer/Viewer/Resources/Ltr14n.cab">
<P>Raster - This is not supported in web browser.</P>
</OBJECT>
 
<OBJECT ID="RasterVR1" NAME="RasterVR1" CLASSID="CLSID:00140B9B-B1BA-11CE-ABC6-F5B2E79D9E3F" CODEBASE="http://WebServer/Viewer/Resources/Ltrvr14n.cab">
<P>RasterVR1 - This is not supported in web browser.</P>
</OBJECT>

 
<OBJECT ID="RasterIO1" NAME="RasterIO1" CLASSID=CLSID:0014070E-B1BA-11CE-ABC6-F5B2E79D9E3F CODEBASE="http://WebServer/Viewer/Resources/Ltrio14n.cab">
<P>RasterIO1 is not supported in web browser.</P>
</OBJECT>

 
<OBJECT ID="RasterProc" NAME="RasterProc" CLASSID=CLSID:00140712-B1BA-11CE-ABC6-F5B2E79D9E3F CODEBASE="http://WebServer/Viewer/Resources/Ltrpr14n.cab">
<P>RasterProc is not supported in the web browser.</P>
</OBJECT>

 
<OBJECT ID="LEADRasterView1" NAME="LEADRasterView1" CLASSID="CLSID:00140708-B1BA-11CE-ABC6-F5B2E79D9E3F" CODEBASE="http://WebServer/Viewer/Resources/Ltrvw14n.cab"
ALIGN="baseline" BORDER="0" style="left: 85px; width: 80%; height: 95%; position: relative; top: 29px; z-index: 101;" >
<P>LEADRasterView1 is not supported in web browser.</P>
</OBJECT>


   Report 
  10-16-2007, 11:30
RLenski is not online. Last active: 10/25/2007 10:31:36 PM RLenski

Top 150 Posts
Joined on 02-02-2006
Posts 19
Re: Problems Getting ActiveX To Work on Client Machines - Further Information
Reply Quote

I was able to get the client working somewhat better.  I now get the error "type mismatch" when trying to load the image file.  It works perfectly on the server, just not the client.  I made sure the the file is accesible from the client, by putting the location in the address bar, the file starts to download.  Here is where I get the error on the client machine......

      var filename1 = Text1.value;
      RasterIO1.BitmapDataPath(LEADRasterView1.Raster, filename1);  <------- "Type Mismatch"

This is actually just like another post I saw at http://support.leadtools.com/SupportPortal/cs/forums/12175/ShowPost.aspx .  Was the error ever resolved?  I am using the exact same version.  Thanks in advance for all of your help.

Thanks,

Rich


   Report 
  10-17-2007, 2:53
Qasem Lubani is not online. Last active: 8/27/2008 3:13:14 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,034
Re: Problems Getting ActiveX To Work on Client Machines - Further Information
Reply Quote
The problem could be related to using old build of DLLs. I want to send you download instruction to get our latest patches to be used for deployment.

Can you please send me your serial number for verification to get download instructions? I have also sent you an email requesting this information to your email.
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  10-18-2007, 2:12
Qasem Lubani is not online. Last active: 8/27/2008 3:13:14 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,034
Re: Problems Getting ActiveX To Work on Client Machines - Further Information
Reply Quote
I have sent you download instructions to get thE latest LEADTOOLS 14.5 patches . Please try the issue with them and make sure that you sue them in the CAB files.
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  10-25-2007, 17:17
RLenski is not online. Last active: 10/25/2007 10:31:36 PM RLenski

Top 150 Posts
Joined on 02-02-2006
Posts 19
Still Having Problems With Lead View Control on Client Machine
Reply Quote

To Whoever Can Help,

 

I still seem to be having a problem with trying to display a simple image on the client with the activex image view control.  Everything seems to install properly.  I created my own cab file with all of the necessary files stated in the "Files To Be Included With Your Application".  I have narrowed my problem down to the Raster object not being initialized or created when I go to load a file in.

alert(LEADRasterView1);            <-- Here the alert is [object] on the development machine that works, and the client

alert(LEADRasterView1.Raster);   <-- Here the alert is [object] on the development machine that works, but the client shows [undefined]

var code = RasterIO1.BitmapDataPath(LEADRasterView1.Raster, filename1);  <--- I get a "Type Mismatch" error.

Any help would be greatly appreciated as I have been trying to get this image view control for some time now. 

The files in my cab file are: 

Ltrvw14n.ocx Ltrpr14n.dll Ltrio14n.dll ltdis14n.dll ltefx14n.dll ltfil14n.dll ltimg14n.dll lttwn14n.dll lfcmp14n.dll lftif14n.dll lffax14n.dll Ltrvr14n.dll Ltr14n.dll ltkrn14n.dll msvcrt.dll mfc42.dll olepro32.dll

Here is my object definition:

 NAME="LEADRasterView1"
 CLASSID="CLSID:00140708-B1BA-11CE-ABC6-F5B2E79D9E3F"
 CODEBASE="http://WebServer/Viewer/Resources/LTOCX14N.CAB"
 ALIGN="baseline"
 BORDER="0"
 style="left: 125px; width: 80%; height: 95%; position: relative; top: 29px; z-index: 101;" >
  

LEADRasterView1 is not supported in web browser.


For my lpk file, I am using the one that came with the cd, the ltocx14.lpk

Thanks,

Rich


   Report 
  10-28-2007, 5:46
Qasem Lubani is not online. Last active: 8/27/2008 3:13:14 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,034
Re: Still Having Problems With Lead View Control on Client Machine
Reply Quote

You only need the Ltr14n DLL for the Raster object use. If you copy this DLL to the deployment machine (Without the use of the cab file) and manually register it, does it work?

Also, if you try the RasterIO.Load("local disk file"...) method, does it work?


Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
Post
LEAD Support Fo... » Developer » Internet » Problems Getting ActiveX To Work on Client Machines

Powered by Community Server, by Telligent Systems