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

Saves a specified Presentation an OOXML format .pptx file.

Signature
C#
C#
 public virtual void Save(Presentation presentation, System.IO.Stream stream)
Signature
vb.net
vb.net
Public Overridable Sub Save(ByVal presentation As Presentation, ByVal stream As System.IO.Stream)
Parameters
Param
presentation
presentation

A Presentation object representing the presentation to save.

Param
stream
stream

The output stream to write to. This stream must be open and writable. PowerPointWriter will not close this stream; the calling program is responsible for closing the stream and releasing the resource.

Example
Code Block
csharp
csharp
titleC#

          PowerPointApplication pptApp = new PowerPointApplication();
          Presentation pres = pptApp.Create(PowerPointApplication.FileFormat.Pptx);
          FileStream fstream = new FileStream(@"C:\temp\outfile.pptx",
               FileMode.Create);
          PowerPointApp.Save(pres,fstream);
        
Code Block
vbnet
vbnet
titlevb.net

          Dim pptApp As New PowerPointApplication()
          Dim pres As Presentation = pptApp.Create(PowerPointApplication.FileFormat.Pptx)
          Dim fstream As New FileStream("C:\temp\outfile.pptx", _
               FileMode.Create)
          pptApp.Save(pres, fstream)