RAD PDF Documentation
setPageCurrent Method
See Also  Send Feedback

Set the page currently being viewed in the PdfWebControl instance.

Syntax

CopyJavaScript
function setPageCurrent(pageNumber);

Parameters

pageNumber

Type: Integer

The page number the viewer should currently be shown. This number should be between 1 and getPageCurrent Method (inclusive)

Return Value

Type: Boolean

Returns true if successful.

Returns false if fails.

Remarks

This method will return false if the page number is out of range.

Examples

CopyJavaScript
var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance
myApi.setPageCurrent(1); //go to first page

See Also

Other Resources

PdfWebControlApi Methods
getPageCount Method
getPageCurrent Method

Send comments on this topic to sales@ctdeveloping.com

Copyright CTdeveloping, LLC