Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MSFlexGrid from HTML Page

Posted on 2000-03-08
3
Medium Priority
?
305 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 800 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

704 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