Description
PowerPointApplication is the main class for pure code-based presentation generation (for information about template-based presentation generation, see PowerPointTemplate). A single instance ofPowerPointApplication 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
PowerPointApplicationto the C# page:using SoftArtisans.OfficeWriter.PowerPointWriter;
Create a
PowerPointApplicationobject:PowerPointApplication ppta = new PowerPointApplication();
In VB.NET:
Import
PowerPointApplicationto the VB.NET page:Imports SoftArtisans.OfficeWriter.PowerPointWriter
Create a
PowerPointApplicationobject: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
|
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 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. | |
| Opens a presentation form a PowerPoint Template. | |
| Opens the template file from the specified disk location. | |
| Opens the template file from a stream. | |
| Saves a specified Presentation as a OOXML format.pptx. | |
| 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. |
| The page PowerPointApplication.Save(PowerPointWriter.Presentation, System.Web.HttpResponse, Boolean) could not be found. |
Nested Classes
Name | Description |
|---|---|
When creating PowerPoint files with Create, specifies which file format to use. |
