Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

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.

{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;
Create a PowerPointApplication object:
{code}

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



In VB.NET:
Import PowerPointApplication to the


* Import {{PowerPointApplication}} to the VB.NET page:

{code
:vbnet
}Imports SoftArtisans.OfficeWriter.PowerPointWriter
Create a PowerPointApplication object:
{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
        
Signature
C#C#
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}{signature:vb.net
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:
Code Block
csharpcsharp
Code Block
csharpcsharpvbnet
Code Block
Example
Code Block
csharpcsharp
titleC#
Code Block
vbnetvbnettitle
Methods
{code}

{example}

{methods}
|[Create(FileFormat)

...

|PowerPointApplication.Create(PowerPointApplication.FileFormat)

...

]|{excerpt-include:PowerPointApplication.Create(PowerPointApplication.FileFormat)

...

|nopanel

...

PowerPointApplication

=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

...

Classes

...

Name

...

Description

...

FileFormat

...

=true}|

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