Streams the specified presentation to the client. It should be the only method that uses the response object, as it automatically sets response headers, clears the body of the response, and flushes it to the client.

 public virtual void Save(Presentation presentation, System.Web.HttpResponse response, boolean openInBrowser, System.String fileName)
Public Overridable Sub Save(ByVal presentation As Presentation, ByVal response As System.Web.HttpResponse, ByVal openInBrowser As Boolean, ByVal fileName As String)

A Presentation object representing the presentation to save.

A object, usually Page.Response.

If true, the spreadsheet will be opened in place in Internet Explorer, rather than spawning a seperate PowerPoint window.

Specifies a file name for the presentation. This name will be displayed in the download dialog when the file is streamed to the browser.


          PowerPointApplication pptApp = new PowerPointApplication();
          Presentation pres = pptApp.Create(PowerPointApplication.FileFormat.Pptx);

          //--- Do something here
          pptApp.Save(pres, Page.Response, false, "generated.pptx");
        

          Dim pptApp As New PowerPointApplication()
          Dim pres As Presentation = pptApp.Create(PowerPointApplcation.FileFormat.Pptx)

          '--- Do something here
          pptApp.Save(pres, Page.Response, False, "generated.pptx" )