Page tree
    Created with Raphaël 2.1.0
    Loading...
Skip to end of metadata
Go to start of metadata

Description

Saves a specified Presentation an OOXML format .pptx file.

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

Parameters

presentation
A Presentation object representing the presentation to save.
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.

Examples

C#
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);
vb.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)
  • No labels