Message-ID: <1812055618.8793.1711661323178.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8792_1025743041.1711661323178" ------=_Part_8792_1025743041.1711661323178 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
If you pass Save an HttpResponse object object, Wo= rdWriter will stream the generated file to the client. If the user chooses = to open (rather than save) the file, it will open in the browser window.
=20public void Save(System.Web.HttpResponse response)=20
Public Sub Save(ByVal response As System.Web.HttpResponse)=20
HttpResponse
object.=20
Save
will throw this exception if=20
null
(C#) or=20
Nothing
(VB.NET) is passed to the method.=20
Save
more than once for a single instance of=20
WordTemplate. Th=
is allows you to save more than one copy of a generated file, and/or both s=
ave the file on the server and stream it to the client.=20
... WordTemplate oWW =3D new WordTemplate(); oWW.Open(Server.MapPath(@"./StringVarTemplate.doc")); oWW.SetDataSource(MyDataTable); oWW.Process(); oWW.Save(Page.Response);=20
... Dim oWW As New WordTemplate() oWW.Open(Server.MapPath("./StringVarTemplate.doc")) oWW.SetDataSource(MyDataTable) oWW.Process() oWW.Save(Page.Response)=20