Viewer Constructor (String, LoadOptions)
Initializes new instance of Viewer class.

Namespace: GroupDocs.Viewer
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 20.8
Syntax
public Viewer(
	string filePath,
	LoadOptions loadOptions
)

Parameters

filePath
Type: SystemString
The path to the file to render.
loadOptions
Type: GroupDocs.Viewer.OptionsLoadOptions
The options that used to open the file.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when filePath is null or empty.
ArgumentNullExceptionThrown when loadOptions is null.
Remarks
Learn more
See Also