Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Saves a specified Presentation an OOXML format .pptx file.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Saves a specified [Presentation|Presentation] an OOXML format .pptx file.{excerpt}
{signature:C#}
 public virtual void Save(Presentation presentation, System.IO.Stream stream)
Signature
{signature}{signature:vb.net
vb.net
}
Public Overridable Sub Save(ByVal presentation As Presentation, ByVal stream As System.IO.Stream)
Parameters
{signature}
{parameters}
{param:presentation}A {{Presentation}} object representing the presentation to save.{param}
{param: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.{param}

{example}{code:csharp|title=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);
        
{code}
{code:vbnet|title=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)
        {code}

{example}
Param
presentationpresentation

A Presentation object representing the presentation to save.

Param
streamstream

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
csharpcsharp
titleC#
Code Block
vbnetvbnettitle