Description |
---|
...
Wiki Markup |
---|
{description} {excerpt}If you pass [Save|ExcelTemplate.Save] an {msdn:System.Web.HttpResponse |
...
Signature | ||
---|---|---|
C# | C# | |HttpResponse} object object, ExcelWriter will stream the generated file to the client. {excerpt}
{signature:C#}
public virtual void Save(System.Web.HttpResponse response)
|
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public Overridable Sub Save(ByVal response As System.Web.HttpResponse)
|
Parameters |
---|
Param | |||
---|---|---|---|
response | response | A Msdn | {signature} {parameters} {param:response}A {msdn:System.Http.Response |System.Http.Response |
1 | System.Http.Response |
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. | |
Exception | ArgumentException | ArgumentException | |
Remarks | |||
If the user chooses to open (rather than save) the file, it will open in the browser window. ExcelWriter will set a default name for the file. To set a different file name and/or to open the file in Microsoft Excel, use the signature {exception} {exception:ArgumentException}{exception} {remarks} If the user chooses to open \(rather than save\) the file, it will open in the browser window. ExcelWriter will set a default name for the file. To set a different file name and/or to open the file in Microsoft Excel, use the signature [Save(HttpResponse,string,bool). You can call | |||
Example | |||
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |