Distributing an ActiveX listview control using IE4

I have written an HTML page for our (IE4 based) intranet and have included an ActiveX listview control (by dragging in a ListViewCtrl from the Visual Interdev Toolbox onto my page). This gives me an <OBJECT> tag and a listview that displays fine on my PC and (as far as I can tell) other PCs with VB installed.

The problem comes when I try to view the page on any other PC - the listview control just displays in IE4 as a graphic placeholder and the object isn't loaded.

Can anyone help?

For your information, I have already tried:

1. Including a "codebase" parameter so that the mscomctl.cab file is downloaded from the Microsoft web site if the listview's classid is not found on the client PC. The cab file appeared to be downloaded, but still no listview object.

2. Manually copying the mscomctl.ocx file from my PC to a test client PC and registering it with regsvr32. That didn't work either. I checked the registry and the listview's classid *does* appear in the client PCs registry, implying that the correct version of the listview control should now be on the client PC.
mbristow_28Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hesCommented:
I had the same problem with msflexgrid
Try the following:

VB activeX controls are licensed for the development box only. IE's license manager will not display a unlicensed control. You have to create a .LPK file from the tool
lpk_tool.exe located on the vb install cd under common/tools/vb/lpk, then install that file on the server running the htmp page and add the following code to the html page
 <object CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"   width="50" height="50">
    <param name="LPKPath" value="FileName.lpk">
  </object>
0
cable4096Commented:
For more information please consult this Microsoft web site:

http://support.microsoft.com/support/kb/articles/Q159/9/23.asp

0
mbristow_28Author Commented:
Thanks to cable4096 and hes for replying. I've spent probably about 6 hours trying to sort this out and finally it works! In addition, I'd spent many days building up my ASP pages, assuming that all the client PCs would have this listview control!

Since you both came up with the same answer, the points will go to the whichever one of you can tell me the best way to stop the 'yes/no/more info' form coming up - the form that says:

"The authenticity of this content cannot be verified, therefore it cannot be trusted The root certificate has not been enabled as a trusted root, do you want to install and run Microsoft Common Controls?".

I'd prefer for the control to install from the .cab file automatically in the background, rather than for the users to have to see this form.

(if neither of you knows the answer I'll toss a coin for the points!)

Thanks

Matt
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

mbristow_28Author Commented:
Adjusted points to 210
0
hesCommented:
This might give you an idea why it is happening. Not sure if you can stop the message on all machines.

http://support.microsoft.com/support/kb/articles/Q196/3/16.ASP
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mbristow_28Author Commented:
Good one!

It turns out that the majority of my users won't see the 'root certificate' message, the ActiveX control will just install anyway. But the linked page you provided is nevertheless helpful.

Thanks

Matt
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Components

From novice to tech pro — start learning today.