Description |
---|
...
Wiki Markup |
---|
{description} {excerpt}Sends the generated Word binary file to the specified {msdn:System.IO.Stream |
...
} or, a class derived from {{System.IO.Stream}} \(for example, |
...
{msdn |
...
:System.IO.FileStream |
...
}\). |
...
Signature | ||
---|---|---|
C# | C# | {excerpt}
{signature:C#}
public void Save(System.IO.Stream outputStream)
|
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public Sub Save(ByVal outputStream As System.IO.Stream)
|
Parameters |
---|
Param | ||
---|---|---|
oStreamObj | oStreamObj | A {signature} {parameters} {param:oStreamObj}A {{System.IO.Stream}} object \(for example, {{Response.OutputStream}}\) or, a class derived from {{System.IO.Stream}} \(for example, {{System.IO.FileStream) |
Exceptions |
---|
Exception | |||
---|---|---|---|
ArgumentNullException | ArgumentNullException | Save will throw this exception if null (C#) or Nothing }}\){param} {exceptions} {exception:ArgumentNullException}{{Save}} will throw this exception if {{null}} \(C\#\) or {{Nothing}} \(VB.NET\) is passed to the method. | |
Remarks | |||
If you pass Save a {exception} {remarks}If you pass [Save|WordTemplate.Save] a {{System.IO.FileStream}}, WordWriter will save the generated file on the server. If you pass {{Save}} {{Response.OutputStream}}, WordWriter will stream the the generated file to the client. You can call {{Save}} more than once for a single instance of [WordTemplate]. This allows you to save more than one copy of a generated file, and/or both save the file on the server and stream it to the client. | |||
Example | |||
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |