Message-ID: <1026472729.8111.1711632453505.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8110_455061328.1711632453505" ------=_Part_8110_455061328.1711632453505 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
If you pass save
an HttpServletResponse object, WordWriter =
will stream the generated file to the client. This method allows you to spe=
cify a default client-side file name, and whether the file should be opened=
in the browser window or in Microsoft Word.
public void Save(System.Web.HttpResponse response, System.String attachmen= tName, boolean openInBrowser)=20
Public Sub Save(ByVal response As System.Web.HttpResponse, ByVal attachment= Name As String, ByVal openInBrowser As Boolean)=20
If openInBrowser
is set to true
, and the user =
chooses to open the file, the file will open in the browser window. If false
, and the user chooses t=
o open the file, the file will open in Microsoft Word. By default, the file=
will open in the browser window.
Save
will throw this exception if=20
null
(C#) or=20
Nothing
(VB.NET) is passed to the method.=20
When you pass an HttpResponse object to Save
, WordWriter wi=
ll stream the generated Word file to the client. The browser will display a=
File Download dialog asking the user to open or save the file. The method'=
s second parameter specifies a file name to display in the File Download di=
alog. If the method's third parameter - Op=
enInBrowser - is False and the user chooses to open the Word file, the =
file will open in Microsoft Word.
oWW.Save(Page.Response, "StringVarOutput.doc", false);=20
oWW.Save(Page.Response, "StringVarOutput.doc", False)=20
When you pass an HttpResponse object to Save
, WordWriter wi=
ll stream the generated Word file to the client. The browser will display a=
File Download dialog asking the user to open or save the file. The method'=
s second parameter specifies a file name to display in the File Download di=
alog. If the method's third parameter - OpenInBrowser
- is Tru=
e and the user chooses to open the Word file, the file will open in the bro=
wser window.
oWW.Save(Page.Response, "StringVarOutput.doc", true);=20
oWW.Save(Page.Response, "StringVarOutput.doc", True)=20