.NET Framework Class Library

DocumentViewer.LoadDocument Method (Stream, String)

<< Click to Display Table of Contents >>

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

.NET Framework Class Library

DocumentViewer.LoadDocument Method (Stream, String)

Loads a document from specified stream with specified password and then displays it in the viewer.

Namespace: Gnostice.Controls.WinForms

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

Syntax

Visual Basic

Public Sub LoadDocument ( _
 stream As Stream, _
 Optional password As String = "" _
)

C#

public void LoadDocument(
 Stream stream,
 string password = ""
)

Visual C++

public:
virtual void LoadDocument(
 Streamstream,
 Stringpassword = L""
sealed

Parameters

stream

Type: System.IO.Stream

Stream containing the document that needs to be displayed

password (Optional)

Type: System.String

Password with which the document needs to be decrypted

Implements

IDocumentOperation.LoadDocument(Stream, String)

See Also

DocumentViewer Class

DocumentViewer Members

LoadDocument Overload

Gnostice.Controls.WinForms Namespace