You are here: Re: Trouble embedding ActiveX object in HTML using object tag « HTML « IT news, forums, messages
Re: Trouble embedding ActiveX object in HTML using object tag

Posted by Chris Lieb on 11/29/05 19:03

Chris Lieb wrote:
> Chris Lieb wrote:
> > Hi,
> >
> > I am trying to embed an ActiveX control that handles barcode scanner
> > input in a HTML page. It works fine on the computer that I developed
> > the control on since VB automatically registers ActiveX controls when
> > it builds them. However, when I try to open the page on another
> > computer, instead of the control, I get a standard IE placeholder.
> > Here is the code that I am using:
> >
> > <object
> > name="barcodeTest"
> > classid="clsid:C9575896-B228-4B1C-A854-6B0DA7F9BFD9"
> > codebase="http://ilhodsvr02b6/development/phh5cjl/apps/inventory/activex/barcodegetter.cab"
> > standby="Loading..."
> > type="application/x-oleobject"
> > width="350"
> > height="25">
> > <param name="value" value="param" />
> > </object>
> >
> > The path in the codebase is correct because I tried copying and pasting
> > it into a browser and it tried to download it. I am assuming that the
> > CLSID is correct because the control displays properly on my
> > development machine. I tried setting the codebase to point to the OCX
> > and also appending a #version=1,0,0,0 to both the CAB and OCX paths
> > (the file is version 1.0.0.0), but this caused no change.
> >
> > Does anyone know what is going on? This is really bugging me since it
> > looks like everything is correct and inline with many examples that I
> > have found on the web.
> >
> > You help is much appreciated
> >
> > Chris Lieb
>
> After testing on yet another machine, I realized that I was not
> distributing all of the DLLs required to run my ActiveX control. I
> have now used the VB6 Package and Deployment Wizard to make sure that
> all of the run-time dependancies for my ActiveX control are included in
> the CAB that I have on the web server. The wizard also generates a
> bare-bones HTML page that gives an object tag for the control. This
> page works on my computer, but just gives me a placeholder on the other
> computers that I have tested it on. All I can say is that I am only
> becoming more stumped as time goes by.
>
> Chris Lieb

Ends up that since my version numbers were not set to auto increment
and since I was not doing it manually, the test machines were not aware
that the program had changed. I ended up having to go through and
delete the OCX out of the Downloaded Programs folder and delete all of
the registry keys that pointed to my control and then reloading the
page. Everything now works correctly and I have setup
auto-incrementing version numbers so that I should not run into any
problems with this again.

Chris Lieb

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация