Click to return to the HTML Help home page    
Click/HHClick     SyncURL     HTML Help ActiveX Control...    
Web Workshop  |  DHTML, HTML & CSS  |  HTML Help

Print Method


Microsoft Corporation

Updated June 10, 1999

Purpose

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.

Applies to

Contents

Syntax

Print()

The Print method takes no parameters.

Example

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>

Show Me


link to overview topic About methods
 


Back to topBack to top

Did you find this material useful? Gripes? Compliments? Suggestions for other articles? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.