Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

Opens and returns an existing Document from the specified

Msdn
System.IO.Stream
System.IO.Stream
1Stream
.

Signature
C#
C#
 public Document Open(System.IO.Stream stream)
Signature
vb.net
vb.net
Public Function Open(ByVal stream As System.IO.Stream) As Document
Parameters
Param
stream
stream

Stream to read the document from.

Returns

The document contained in the specified stream.

Exceptions
Exception
System.Exception
System.Exception

Thrown if there is an error opening the document.

Remarks

Though the WordTemplate object currently supports Office Open XML (Word 2007) format files, WordApplication.Open() does not yet support them.

Example
Code Block
csharp
csharp
titleC#
Document doc = app.Open(strm);
Code Block
vb.net
vb.net
titlevb.net
Dim doc As Document = app.Open(strm)