Solved

MSFlexGrid from HTML Page

Posted on 2000-03-08
3
280 Views
Last Modified: 2013-12-26
Hi,
I am trying to use MSflexGrid as activeX in HTML page.
I use CodeBase for the cab file of MSflexGrid then I fill the object properties using VBScript. The codebase does not work for MSFlex. I used microsoft site as a codebase but it does not work unless VB is installed on the PC. I tried to make my own cab file with my local version of MSFLEXGrid.ocx  but it did not work. So it seems I need some other files beside the OCX to make it run. Can anyone tell me how to get the MSFlexGrid installed and registered from my HTML Page so it can run on clients PC without asking them to install VB6?
Thanks
0
Comment
Question by:soso071898
  • 2
3 Comments
 
LVL 20

Expert Comment

by:hes
Comment Utility
I had the same problem when I first tried to use a msflexgrid in html.
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>


FileName.lpk is the path and name of the lpk file you created, path relative to where the html page is stored.

Then for the codebase use
<OBJECT classid="clsid:6262D3A0-531B-11CF-91F6-C2863C385E30"  
id="MSFlexGrid1" style="HEIGHT: 133px; TOP: 0px; VISIBILITY: visible; WIDTH: 563px"

CODEBASE="http://activex.microsoft.com/controls/vb6/MSFlxGrd.cab">
0
 
LVL 20

Accepted Solution

by:
hes earned 200 total points
Comment Utility
<object CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"   width="50" height="50">
    <param name="LPKPath" value="FileName.lpk">
  </object>
0
 

Author Comment

by:soso071898
Comment Utility
Thanks. It worked.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now