60000100 Use the VDF component 6005 and above in HTML (InternetExplorer)

Article 60000100
Type HowTo
Product Engine
Version 6
Date Added 4/3/2007 12:00:00 AM
Fixed (4/3/2007 12:00:00 AM)
Submitted by


How can I use the VDF component 6005 and above in HTML (InternetExplorer) ?


This can be done by using the new Wrapper, VDRAW.OCX (added in 6005 version, which give better compatibility with ActiveX containers and easier version 5.x->6.x migration)  which is used like the old version 5.x vdpro.ocx
From version 6006Beta and above version a CAB file will be provided for the IE installation of vdraw.ocx. A sample web page with this control is like :
  classid=clsid:5220cb21-c88d-11cf-b347-00aa00a28331 VIEWASTEXT>
<PARAM NAME="LPKPath" VALUE="vdrawlpk.lpk">
<OBJECT id=DVdraw1 style="WIDTH: 950px; HEIGHT: 600px"  codeBase="http://www.vdraw.com/tnet/1/vdf.cab#version=-1,-1,-1,-1"
classid=clsid:50585480-E1F3-432A-A9D6-C694EDC9A12D VIEWASTEXT>
<PARAM NAME="_Version" VALUE="393216">
<PARAM NAME="_ExtentX" VALUE="12435">
<PARAM NAME="_ExtentY" VALUE="11324">
<PARAM NAME="_StockProps" VALUE="0">

....... some more properties here

<PARAM NAME="Grid_Font" VALUE="Arial"></OBJECT>   </center> 
We will provide the CAB signed and you will have to set the LicVAL and also create the LPK file with LPK_tool.exe (like in version 5.x) and also set the server's license LICVAL license in your HTML page's properties. The LicVal can be purchased directly from us and for more information contact our sales department.

lpk_tool.exe can be found on MSDN and Microsoft's WebSite. Run the lpk_tool.exe application, choose in the left column the "VectorDraw Professional 6.x Wrapper", Press Add , (in the right column should be only that, and then press "Save & exit" and give the name (in the temporary directory) "vdrawlpk.lpk". This should produce the vdrawlpk.lpk file.
See the code in the HTML :
    <OBJECT classid="clsid:5220cb21-c88d-11cf-b347-00aa00a28331" VIEWASTEXT>
    <PARAM NAME="LPKPath" VALUE="vdrawlpk.lpk">

!!!!!The vdrawlpk.lpk file must be in the same folder in your server as the html files. Note also that in some webservers the filenames are case sensitive so the filename of the LPK file in your web-server and the VALUE of the LPK object in your HTML code must be the same.
      lpktool example

Send comments on this topic.