Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

Opens a PowerPointWriter template presentation file from the specified System.IO.Stream

...

instance.

...

A

...

PowerPointWriter

...

template

...

is

...

a

...

file

...

created

...

in

...

Microsoft

...

PowerPoint

...

that

...

contains

...

data

...

markers

...

where

...

data

...

source

...

values

...

will

...

be

...

inserted.

...

Signature
C#
C#
public void Open(System.IO.Stream templateStream)
{signature}

{signature:
}
Signature
vb.net
vb.net
Public Sub Open(ByVal templateStream As System.IO.Stream)
{signature}

{parameters}
{param:templateStream}
A 
Parameters
Param
templateStream
templateStream

A System.IO.Stream

instance,

or

an

instance

of

a

class

that

is

derived

from

System.IO.Stream

(for

example,

System.IO.MemoryStream),

representing

the

template

PowerPoint

presentation

file.

{param} {exceptions} {exception:ArgumentException} Open will throw this exception if {{null}} \(C\#\) or {{Nothing}} \

Exceptions
Exception
ArgumentException
ArgumentException

Open will throw this exception if null (C#) or Nothing (VB.NET

\

)

is

passed

to

the

method.

This

exception

will

also

be

thrown

if

the

stream

does

not

represent

a

valid

PowerPoint

Office

Open

XML

file(.pptx

or

.pptm)

{exception} {example} {code:csharp|title=C#}

Example
Code Block
csharp
csharp
titleC#
    
//--- Open an Office Open XML PowerPoint (.pptx) file from a memory stream
System.IO.MemoryStream memStream = new MemoryStream(File.ReadAllBytes("template.pptx"));

powerPointTemplate.Open(memStream);
{code} {code:vbnet|title=
Code Block
vbnet
vbnet
titleVB.NET
}

       
 '--- Open an Office Open XML PowerPoint (.pptx) file from a memory stream
 Dim memStream As System.IO.MemoryStream = New MemoryStream(File.ReadAllBytes("template.pptx"))

 powerPointTemplate.Open(memStream)
{code} {example}