Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO : Use FileView ActiveX Control on an HTML or ASP page.

 
Subscribe to the RSS feed for this forum  Forum Index -> FileView ActiveX Control
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Sat Jul 30, 2005 6:32 am    Post subject: HOWTO : Use FileView ActiveX Control on an HTML or ASP page.

Beginning with version 4.3 the developer must use the LPKTool to use the control on an HTML or ASP page as described below (Before running the LPKTool the control must already be properly licensed on the developer's machine) :

    Run the LPKTool which you can download from [url]http://msdn.microsoft.com/downloads/Default.aspx [/url](Search for the term "lpk" on this web page).

    Select "LogicNP Software FileView ActiveX Control" from the list of the ActiveX Controls shown and then click on "Save and Exit" to save the license file. Specify control.lpk as the filename or you can specify your own filename.

    In the HTML or ASP page that is using the control, add the following after the <BODY> start tag :

    <OBJECT CLASSID="clsid:5220CB21-C88D-11cf-B347-00AA00A28331">
    <PARAM NAME="LPKPath" VALUE="control.lpk">
    </OBJECT>

    The object tag shown above needs to precede any other object tags on your page. This tag loads the Microsoft license processor which manages licensed ActiveX controls on a web page.

    Insert the ActiveX Control in the HTML or ASP page manually or using an HTML editor like Visual InterDev or Dreamweaver.


To have Internet Explorer automatically download the filev012.ocx file on a target computer which doesn't have the file installed, you must package the filev012.ocx file in a cab file and specify the cab file in the CODEBASE attribute of the fileview object tag as shown below :

<OBJECT
classid=clsid:80BD0520-A410-4CB3-9F52-AABE2EFEF4DF codebase="fileview.cab" height="300" id=FileView1 style="LEFT: 0px; WIDTH: 405px; TOP: 0px; HEIGHT: 255px" ></OBJECT>


To make a CAB file for filev012.ocx, you will need the Cabinet SDK (downloadable from [url]http://download.microsoft.com/download/platformsdk/cab/2.0/w98nt42kmexp/en-us/Cabsdk.exe [/url])

After you have installed the Cabinet SDK, run the cabarc.exe tool that comes with it as follows :

cabarc.exe n fileview.cab filev012.ocx

The above command line creates a new cabinet file named fileview.cab and adds filev012.ocx to it.
Back to top
Display posts from previous:   
Forum Index -> FileView ActiveX Control All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group