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

Description

PowerPointApplication is the main class for pure code-based presentation generation (for information about template-based presentation generation, see PowerPointTemplate). A single instance of PowerPointApplication can generate multiple workbooks.

C#
public class PowerPointApplication
vb.net
Public Class PowerPointApplication

Remarks

A generated presentation is represented by the Presentation class.

To create an instance of PowerPointApplication:

In C#:

  • Import [PowerPointApplication to the C# page:
    using SoftArtisans.OfficeWriter.PowerPointWriter;
  • Create a PowerPointApplication object:
    PowerPointApplication ppta = new PowerPointApplication();

In VB.NET:

  • Import PowerPointApplication to the VB.NET page:
    Imports SoftArtisans.OfficeWriter.PowerPointWriter
  • Create a PowerPointApplication object:
    Dim ppta As New PowerPointApplication()

Examples

C#
PowerPointApplication ppta = new PowerPointApplication();
Presentation pres = ppta.Create(PowerPointWriter.FileFormat.Pptx);
DocumentProperties docProps = pres.DocumentProperties;
vb.net
Dim ppta As New PowerPointApplication()
Dim pres As Presentation = ppta.Create(PowerPointWriter.FileFormat.Pptx)
Dim docProps = pres.DocumentProperties

Methods

Create(FileFormat)

Creates a new presentation containing 1 slide, in the specified file format. The slide is blank when the presentation is created, and standard font, style, and format settings are applied.

PowerPointApplication

PowerPointApplication is the main class for pure code-based presentation generation (for information about template-based presentation generation, see PowerPointTemplate). A single instance of PowerPointApplication can generate multiple workbooks.

Open(PowerPointTemplate)

Opens a presentation form a PowerPoint Template.

Open(String)

Opens the template file from the specified disk location.

Open(System.IO.Stream)

Opens the template file from a stream.

Save(Presentation, String)

Saves a specified Presentation as a  OOXML format.pptx.

Save(Presentation, System.IO.Stream)

Saves a specified Presentation an OOXML format .pptx file.

Save(Presentation, System.Web.HttpResponse, Boolean, String)

The page PowerPointApplication.Save(PowerPointWriter.Presentation, System.Web.HttpResponse, Boolean, String) could not be found.

Save(Presentation, System.Web.HttpResponse, Boolean)

The page PowerPointApplication.Save(PowerPointWriter.Presentation, System.Web.HttpResponse, Boolean) could not be found.

Nested Classes

Name

Description

FileFormat

When creating PowerPoint files with Create, specifies which file format to use.

  • No labels