Solved

MSFlexGrid from HTML Page

Posted on 2000-03-08
3
281 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
vba find the last empty column 10 90
Validating VB6 Function 19 56
VBA filters 2 51
maro to copy and paste from one worksheet to another based on a condition 11 48
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…

863 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

26 Experts available now in Live!

Get 1:1 Help Now