How to embed SwiftView within your HTML page

To embed SwiftView within an HTML page, use the HTML EMBED tag.  You may also use the OBJECT tag but since it works only with Microsoft IE at this time, use it only when it is the browser of choice for all your users.  An advantage to using the OBJECT tag is to simplify SwiftView installation as you will see in our second example.


In this first example, we use the HTML EMBED tag to embed SwiftView into a HTML table cell.  We set the following EMBED attributes:

  • SRC

    Is set to the path of the document to be displayed, “docs/pcl/phonebill.pcl”.


    Are set to “100%” so it fills the table cell.


    Is set to “gui controls display rightbuttons” so SwiftView’s toolbar will appear.


In this second example, we use the HTML OBJECT tag to embed SwiftView.  Within the OBJECT tag, we set the CLASSID and CODEBASE attributes. IE will use this information to install SwiftView if it is not installed or is outdated.

    Is set to “CLSID:7DD62E58-5FA8-11D2-AFB7-00104B64F127”,
    the registered ID for our SwiftView ActiveX control.  Without this information, IE does not know which ActiveX control to associate with this OBJECT.
    Is set to “../product/current/licensed/”, the location of the CAB file to use when installing the ActiveX control and the version number.  This attribute may be omitted, however, IE will not be able to install the ActiveX control if missing or outdated.
    Are set to “100%” so it fills the table cell.

We specify the document to display using the PARAM tag, setting its NAME attribute to “SRC” and VALUE to “docs/pcl/phonebill.pcl”.  We also use the PARAM tag to set COMMANDS as we did in the first example to display a SwiftView toolbar.