HtmlViewOptionsForExternalResources Method (CreatePageStream, CreateResourceStream, CreateResourceUrl, ReleasePageStream, ReleaseResourceStream)
Initializes new instance of HtmlViewOptions class for rendering into HTML with external resources.

Namespace: GroupDocs.Viewer.Options
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 20.6
Syntax
public static HtmlViewOptions ForExternalResources(
	CreatePageStream createPageStream,
	CreateResourceStream createResourceStream,
	CreateResourceUrl createResourceUrl,
	ReleasePageStream releasePageStream,
	ReleaseResourceStream releaseResourceStream
)

Parameters

createPageStream
Type: GroupDocs.Viewer.InterfacesCreatePageStream
The method that instantiates stream used to write output page data.
createResourceStream
Type: GroupDocs.Viewer.InterfacesCreateResourceStream
The method that instantiates stream used to write output HTML resource data.
createResourceUrl
Type: GroupDocs.Viewer.InterfacesCreateResourceUrl
The method that creates URL for HTML resource.
releasePageStream
Type: GroupDocs.Viewer.InterfacesReleasePageStream
The method that releases stream created by method assigned to delegate that passed to createPageStream parameter.
releaseResourceStream
Type: GroupDocs.Viewer.InterfacesReleaseResourceStream
The method that releases stream created by method assigned to delegate that passed to createResourceStream parameter.

Return Value

Type: HtmlViewOptions
New instance of HtmlViewOptions class for rendering into HTML with external resources.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when createPageStream is null.
ArgumentNullExceptionThrown when createResourceStream is null.
ArgumentNullExceptionThrown when createResourceUrl is null.
ArgumentNullExceptionThrown when releasePageStream is null.
ArgumentNullExceptionThrown when releaseResourceStream is null.
See Also