Install ActiveX component named CADViewX Control in your Windows.

For install CADViewX Control put this files along with:
 - Install.bat (command to library registred);
 - UnInstall.bat (command to library unregistred);
 - TregSvr.exe (register tool);
 - CADViewLib.ocx (CADViewX Control);
 - CADVievLib.tlb (CADViewX type library);

To register CADViewLib.ocx:

1. Close applications which use CADViewLib.ocx (if it is opened in IE please close all the IE pages);
2. Run Uninstall.bat to unregister the previous version of CADViewLib.ocx;
3. Run Install.bat to register new version of CADViewLib.ocx.

Put this component on VB Form.

Use CADViewX1.mmWidth property for obtain drawing width in millimeters or inches.
Use CADViewX1.mmHeight property for obtain drawing Height in millimeters or inches.

Use CADViewX1.ImageWidth property for obtain drawing width in points for HPGL files.
Use CADViewX1.ImageHeight property for obtain drawing height in points for HPGL files.