Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 310
  • Last Modified:

MSFlexGrid from HTML Page

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
soso071898
Asked:
soso071898
  • 2
1 Solution
 
hesCommented:
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
 
hesCommented:
<object CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"   width="50" height="50">
    <param name="LPKPath" value="FileName.lpk">
  </object>
0
 
soso071898Author Commented:
Thanks. It worked.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now