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

...

Signature
C#
C#
 public virtual void Save(Presentation presentation, System.Web.HttpResponse response, System.String fileNameattachmentName, boolean openInBrowser)
Signature
vb.net
vb.net
Public Overridable Sub Save(ByVal presentation As Presentation, ByVal response As System.Web.HttpResponse, ByVal openInBrowserattachmentName As BooleanStringByVal, ByValopenInBrowser fileName As StringBoolean)
Parameters
Param
presentation
presentation

A Presentation object representing the presentation to save.

Param
response
response

A

Msdn
System.Http.Response
System.Http.Response
1System.Http.Response
object, usually Page.Response.

Param
openInBrowserattachmentNameopenInBrowser

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

Param
fileNamefileNameattachmentName

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

Param
openInBrowser
openInBrowser

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

Example
Code Block
csharp
csharp
titleC#

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

          //--- Do something here
          pptApp.Save(pres, Page.Response, false, "generated.pptx", false);
        
Code Block
vbnet
vbnet
titlevb.net

          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", False )