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
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:vb.net}
Public Overridable Sub Save(ByVal presentation As Presentation, ByVal stream As System.IO.Stream)
{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}