.NET Framework Class Library

ViewerController.LoadDocument Method (Stream, String, PageRange, String)

<< Click to Display Table of Contents >>

Navigation:  Gnostice Document Studio .NET > Reference Documentation > API Reference > Gnostice.Controls.ASP Namespace > ViewerController Class > ViewerController Methods > LoadDocument Method  >

.NET Framework Class Library

ViewerController.LoadDocument Method (Stream, String, PageRange, String)

Loads a document from specified stream.

Namespace: Gnostice.Controls.ASP

Assembly:  Gnostice.Controls.ASP (in Gnostice.Controls.ASP.dll)

Syntax

Visual Basic

Public Function LoadDocument ( _
 stream As Stream, _
 Optional password As String = "", _
 Optional pageRange As PageRange = PageRange.All, _
 Optional customPageRange As String = "" _
As String

C#

public string LoadDocument(
 Stream stream,
 string password = "",
 PageRange pageRange = PageRange.All,
 string customPageRange = ""
)

Visual C++

public:
StringLoadDocument(
 Streamstream,
 Stringpassword = L"",
 PageRange pageRange = PageRange::All,
 StringcustomPageRange = L""
)

Parameters

stream

Type: System.IO.Stream

Stream from which the file needs to be loaded.

password (Optional)

Type: System.String

Provide password for encrypted document.

pageRange (Optional)

Type: Gnostice.Core.DOM.PageRange

Pages that need to be loaded.

customPageRange (Optional)

Type: System.String

Custom page range string when PageRange.Custom is specified.

Return Value

The document URL that needs to be passed back to the client.

See Also

ViewerController Class

ViewerController Members

LoadDocument Overload

Gnostice.Controls.ASP Namespace