Message-ID: <1106895939.8229.1711638567521.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8228_849501885.1711638567521" ------=_Part_8228_849501885.1711638567521 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html PowerPointTemplate.Save(System.Web.HttpResponse)

PowerPointTemplate.Save(System.Web.HttpResponse)

Description

=20

Streams the PowerPointTemplate to the client.

=20
C#
=20
=09public void Save(System.Web.HttpResponse res=
ponse)
=20
=20
vb.net
=20
Public Sub Save(ByRef response As System.Web.Htt=
pResponse)
=20
=20

Para= meters

=20
respon= se
An HttpResponse to write the resulting PowerPoint file to.=20

Exce= ptions

=20
InvalidOperationException
=20 Save will throw this exception if it does not have a PowerPoin= t document handle ( Save cannot be called before=20 Open).=20

Remarks=

=20

If the user chooses to open rather than save the file, it will open in t= he browser window. PowerPointWriter will set a default name for the file. T= o set a different file name and/or open the file in Microsoft PowerPoint, u= se the signature Save(HttpResponse,String,Bool)

=20

You can call Save more than once for a single instance of <= a href=3D"/display/PPTW9/PowerPointTemplate" rel=3D"nofollow">PowerPointTem= plate. 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.

=20

Exampl= es

=20
C#
=20
using (PowerPointTemplate ppt =3D new PowerPointTemplate())
{
 ppt.Open("MyInputFilePath.pptx");

 // where response is the HttpResponse for the current page
 ppt.Save(response);
}=09
=20
------=_Part_8228_849501885.1711638567521--