|
In order to use DynamiCube to download a microCube file from your web page, you must first create and save your file on your Internet or intranet web site. MicroCube files can be created using a VB application that queries the data, generates the multidimensional view and saves both the layout and data into a file using the "DCube1.Save" method. To remove DynamiCube's evaluation notice you will need to create a license package file (LPK) using the LPK Tool included in VB and ActiveX SDK from Microsoft. Remember to package ALL CONTROLS used on your page in addition to DynamiCube. Any web page can include only 1 LPK. Your LPK should include the license for all ActiveX controls on your page. Using NotePad or an HTML editor of your choice, add the following license object tag. The license object is included with Internet Explorer. Keep in mind that mypage.lpk is the relative path to the LPK file you created on your web server. <OBJECT classid=CLSID:5220cb21-c88d-11cf-b347-00aa00a28331></OBJECT> You must also add DynamiCube's object tag into the HTML page. When the page is loaded into the user's system, the browser checks the registry to determine if the system has the ActiveX control referenced by the CLASSID. If it does, then the local copy is used. Otherwise, the browser attempts to download the control from the CODEBASE URL. The DynamiCube .CAB file is included as part of the DynamiCube package Keep in mind here that CODEBASE is a URL path referring to where the client can download the DynamiCube.CAB file. DynamiCube 2.x: <OBJECT id=DCube1 codeBase=\files\dcube\dcube.cab#VERSION=2,5,1,2 height=300 width=400 classid=clsid:6D63F73D-3688-11D0-9C0F-00A0C90F29FC></OBJECT> DynamiCube 3.0: <OBJECT id=DCube1 codeBase=\files\dcube3\cube3.cab#VERSION=3,0,0,1144 height=300 width=400 classid="clsid: 6D63F73D-3688-3000-9C0F-00A0C90F29FC"></OBJECT> Now add the following script to your page to load the .CUB file from your server to the webpage. This is done in the LoadComplete event. Also, keep in mind that "MyCubFile.CUB" is the file you created earlier and placed on your web server. Sub DCube1_LoadCompleted() DCube1.DataPath = "MyCubFile.cub" End Sub Related Articles: Download LPK Tool
|