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}[PowerPointApplication|PowerPointApplication] is the main class for pure code\-based presentation generation \(for information about template\-based presentation generation, see [PowerPointTemplate|PowerPointTemplate]\). A single instance of {{PowerPointApplication}} can generate multiple workbooks.{excerpt}
{signature:C#}
 public class PowerPointApplication
{signature}{signature:vb.net}
Public Class PowerPointApplication
{signature}
{remarks}A generated presentation is represented by the [Presentation|Presentation] class.

To create an instance of {{PowerPointApplication}}:

In C\#:

* Import {{[PowerPointApplication}} to the C\# page: {code:csharp}
using SoftArtisans.OfficeWriter.PowerPointWriter;{code}

* Create a {{PowerPointApplication}} object: {code:csharp}
PowerPointApplication ppta = new PowerPointApplication();{code}



In VB.NET:

* Import {{PowerPointApplication}} to the VB.NET page:
{code:vbnet}Imports SoftArtisans.OfficeWriter.PowerPointWriter{code}

* Create a {{PowerPointApplication}} object: \{code:vbnet}Dim ppta As New PowerPointApplication(){code}


{remarks}

{example}{code:csharp|title=C#}

          PowerPointApplication ppta = new PowerPointApplication();
          Presentation pres = ppta.Create(PowerPointWriter.FileFormat.Pptx);
          DocumentProperties docProps = pres.DocumentProperties;
        {code}
{code:vbnet|title=vb.net}

          Dim ppta As New PowerPointApplication()
          Dim pres As Presentation = ppta.Create(PowerPointWriter.FileFormat.Pptx)
          Dim docProps = pres.DocumentProperties
        {code}

{example}

{methods}
|[Create(FileFormat)|PowerPointApplication.Create(PowerPointApplication.FileFormat)]|{excerpt-include:PowerPointApplication.Create(PowerPointApplication.FileFormat)|nopanel=true}|
|[PowerPointApplication|PowerPointApplication]|{excerpt-include:PowerPointApplication|nopanel=true}|
|[Open(PowerPointTemplate)|PowerPointApplication.Open(PowerPointWriter.PowerPointTemplate)]|{excerpt-include:PowerPointApplication.Open(PowerPointWriter.PowerPointTemplate)|nopanel=true}|
|[Open(String)|PowerPointApplication.Open(String)]|{excerpt-include:PowerPointApplication.Open(String)|nopanel=true}|
|[Open(System.IO.Stream)|PowerPointApplication.Open(System.IO.Stream)]|{excerpt-include:PowerPointApplication.Open(System.IO.Stream)|nopanel=true}|
|[Save(Presentation, String)|PowerPointApplication.Save(PowerPointWriter.Presentation, String)]|{excerpt-include:PowerPointApplication.Save(PowerPointWriter.Presentation, String)|nopanel=true}|
|[Save(Presentation, System.IO.Stream)|PowerPointApplication.Save(PowerPointWriter.Presentation, System.IO.Stream)]|{excerpt-include:PowerPointApplication.Save(PowerPointWriter.Presentation, System.IO.Stream)|nopanel=true}|
|[Save(Presentation, System.Web.HttpResponse, Boolean, String)|PowerPointApplication.Save(PowerPointWriter.Presentation, System.Web.HttpResponse, String, Boolean)]|{excerpt-include:PowerPointApplication.Save(PowerPointWriter.Presentation, System.Web.HttpResponse, Boolean, String)|nopanel=true}|
|[Save(Presentation, System.Web.HttpResponse, Boolean)|PowerPointApplication.Save(PowerPointWriter.Presentation, System.Web.HttpResponse, String, Boolean, String)]|{excerpt-include:PowerPointApplication.Save(PowerPointWriter.Presentation, System.Web.HttpResponse, Boolean)|nopanel=true}|

{classes}
||Name||Description||
|[FileFormat|PowerPointApplication.FileFormat]|{excerpt-include:PowerPointApplication.FileFormat|nopanel=true}|