Go Back  Xtreme Visual Basic Talk > Other Languages > Web Programming > ocx file not working in my htm page


Reply
 
Thread Tools Display Modes
  #1  
Old 04-17-2012, 04:46 AM
icampbell icampbell is offline
Junior Contributor
 
Join Date: Feb 2003
Location: Northumberland, England
Posts: 247
Default ocx file not working in my htm page


hi all,

i have a simple test htm page that opens up a .ocx file and passes a value into it.
the ocx connects to a db retrieves a recordset of document paths using the value passed in and displays them in a list box for the user to click on and open.

i have this working on my PC, however when i have copied the .htm and .ocx files onto another PC the .ocx does not work and i just get a red X in the top corner.
do i have to register the ocx if its used on a web page?
is it something to do with the CLSID?

code in .htm is
HTML Code:
<HTML>

<BODY>
<OBJECT name="activeXControlName" id="activeXControlID" width="500" height="200" classid="clsid:6BB4BAEC-DB5D-4FEB-9B66-D8C04686A120">
<param name="propertyNameToBeExposedThroughParam" value="98" />
</OBJECT>

</BODY>

</HTML>
thanks in advance
Ian.
__________________
Were all going to heaven lads, wey heyy.....
Reply With Quote
  #2  
Old 04-17-2012, 09:28 AM
DrPunk's Avatar
DrPunk DrPunk is offline
Senior Contributor

* Expert *
 
Join Date: Apr 2003
Location: Never where I want to be
Posts: 1,405
Default

Yeah, chances are you have to register the ocx.

running "regsvr32 filepath" generally does the trick.
__________________
There are no computers in heaven!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->