ViewerView Method (ViewOptions, Int32)
Creates view of specific document pages.

Namespace: GroupDocs.Viewer
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 20.11
Syntax
public void View(
	ViewOptions options,
	params int[] pageNumbers
)

Parameters

options
Type: GroupDocs.Viewer.OptionsViewOptions
The view options.
pageNumbers
Type: SystemInt32
The page numbers to view.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when options is null.
ArgumentNullExceptionThrown when pageNumbers is null.
ArgumentExceptionThrown when pageNumbers is empty.
PasswordRequiredExceptionThrown when password is required to open the document.
IncorrectPasswordExceptionThrown when password that was specified is incorrect.
GroupDocsViewerExceptionThrown when attachment could not be found.
Remarks
Learn more
See Also