Message-ID: <2078191252.8021.1711629168172.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8020_1427988811.1711629168172" ------=_Part_8020_1427988811.1711629168172 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html PowerPointTemplate.Open(System.IO.Stream)

PowerPointTemplate.Open(System.IO.Stream)

De= scription

=20

Opens a PowerPointWriter template presentation file from the specified S= ystem.IO.Stream instance. A PowerPointWriter template is a file created in = Microsoft PowerPoint that contains data markers where data source values wi= ll be inserted.

=20

=20
C#
=20
public void Open(System.IO.Stream templateStream)
=20
=20
vb.net
=20
Public Sub Open(ByVal templateStream As System.IO.Stream)
=20
=20

Parameters<= /h2>=20

templat= eStream
A System.IO.Stream instance, or an instance of a class that is= derived from System.IO.Stream (for example, System.IO.MemoryStream), repre= senting the template PowerPoint presentation file.=20

Exceptions<= /h2>=20

Argu= mentException
Open will throw this exception if=20 null (C#) or=20 Nothing (VB.NET) is passed to the method. This exception will = also be thrown if the stream does not represent a valid PowerPoint Office O= pen XML file(.pptx or .pptm)=20

Examples

= =20
C#
=20
   =20
//--- Open an Office Open XML PowerPoint (.pptx) file from a memory stream
System.IO.MemoryStream memStream =3D new MemoryStream(File.ReadAllBytes(&qu=
ot;template.pptx"));

powerPointTemplate.Open(memStream);
=20
=20
VB.NET
=20
      =20
 '--- Open an Office Open XML PowerPoint (.pptx) file from a memory stream
 Dim memStream As System.IO.MemoryStream =3D New MemoryStream(File.ReadAllB=
ytes("template.pptx"))

 powerPointTemplate.Open(memStream)
=20
------=_Part_8020_1427988811.1711629168172--