Click or drag to resize

print Method

Print the document currently open in the PdfWebControl instance.

Syntax
JavaScript
function print();

Parameters

None

Return Value

Type: Boolean

true if printing initiated successfully; otherwise, false.

Remarks

This method will start the print dialog, however it can not ensure that the client does print the PDF.

Examples
JavaScript
var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance
myApi.print(); //this will bring up the print dialog
See Also