Prod.: Engine, ver.: 6, ID: 60000100, HowTo : Use the VDF component 6005 and above in HTML (InternetExplorer)

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

Article60000100
TypeHowTo
ProductEngine
Version6
Date Added4/3/2007
Submitted by
Keywords

Subject

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

Summary

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

Solution

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 :
<html>
  <head>
  </head>
  <body>
   <center>
<OBJECT
  classid=clsid:5220cb21-c88d-11cf-b347-00aa00a28331 VIEWASTEXT>
<PARAM NAME="LPKPath" VALUE="vdrawlpk.lpk">
</OBJECT>
<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="LicVAL" VALUE="PUT THE SERVER'S LICVAL LICENSE HERE">

<PARAM NAME="Grid_Font" VALUE="Arial"></OBJECT>   </center> 
</body>
</html>
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">
    </OBJECT>


!!!!!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