LPK
Note that an .lpk file should be treated the same as the license file; it is NOT to be distributed to client machines. You may use lpk on one server location, as you would the license file.
Creating a LPK file
On a machine that has a licensed copy of DicomObjects OCX download the LPK tool from microsoft here here
- Install and run the LPK tool
- In the left hand window highlight DicomViewer Control
- Click add
- Click Save & Exit
- Enter a path and file name for the new LPK file
- Click ok
Using the LPK file
In your HTML page, you must insert an <OBJECT> tag for the License Manager object before any other <OBJECT> tags. The License Manager is an ActiveX control that is installed with Internet Explorer. Its CLASSID is shown below. Set the LPKPath property of the License Manager object to the path and name of the LPK file. You can have only one LPK file per HTML page.
<object CLASSID = "clsid:5220cb21-c88d-11cf-b347-00aa00a28331"> <PARAM NAME="LPKPath" VALUE="Dicomobjects.lpk"> </object>
Downloading the Control From the Server- The CAB File
The cab file enables clients to download a run-time version of the control. In your HTML page, you must insert an <OBJECT> tag for each instance of the control. The control's CLASSID is shown below, along with an example location of the CAB file (set with the CODEBASE tag). The NAME tag is the name used to reference the control in scripting. The WIDTH and HEIGHT tags are used to set the size of the object in pixels.
<OBJECT ID="Viewer" WIDTH=600 HEIGHT=600 CLASSID="CLSID:853AAF97-E49C-11D0-A303-0040C711066C" CODEBASE="DicomObjectsFull.cab"> </OBJECT>