Use the Print method to print one or more topics in a specified contents (.hhc) file.
This method can be used with either a compiled help (.chm) file or uncompiled HTML files.
Print()
The Print method takes no parameters.
The following example shows how to use the Print method to invoke the Contents command.
The code for the Contents command:
<OBJECT
id=test2
type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"
codebase="hhctrl.ocx#Version=4,72,8252,0"
width=55%
height=45%
>
<PARAM name="Command" value="Contents">
<PARAM name="Item1" value="methods.hhc">
</OBJECT>
The JavaScript code to call the Print method:
<a href=JavaScript:test2.Print()>Print Contents</a>
About methods | |