Solved

MSFlexGrid from HTML Page

Posted on 2000-03-08
3
300 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 20

Expert Comment

by:hes
ID: 2613855
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
ID: 2619560
<object CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"   width="50" height="50">
    <param name="LPKPath" value="FileName.lpk">
  </object>
0
 

Author Comment

by:soso071898
ID: 2626115
Thanks. It worked.
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Suggested Courses
Course of the Month11 days, 17 hours left to enroll

623 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