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
Description

Excerpt

Passes a presentation from PowerPointApplication to PowerPointTemplate.

Signature
C#
C#
 public virtual void Open(PowerPointApplication pptApplication, Presentation presentation)
Signature
vb.net
vb.net
Public Overridable Sub Open(ByVal pptApplication As PowerPointApplication, ByVal presentation As Presentation)
Parameters
Param
pptApplication
pptApplication

The instance of PowerPointApplication that was used to create the spreadsheet.

Param
presentation
presentation

A Presentation object representing the PowerPoint file created with PowerPointApplication.

Exceptions
Exception
ArgumentNullException
ArgumentNullException

Open will throw this exception if null (C#) or Nothing (VB.NET) is passed to the method.

Exception
ArgumentException
ArgumentException

Remarks

You can use PowerPointApplication to create a document with data markers (a template) and pass the file to PowerPointTemplate to populate the data markers.

Example
Code Block
csharp
csharp
titleC#

          PowerPointApplication ppta = new PowerPointApplication();
          Presentation pres = ppta.Create(PowerPointApplication.FileFormat.Pptx);
          PowerPointTemplate pptt = new PowerPointTemplate();
          pptt.Open(ppta, pres);

        
Code Block
vbnet
vbnet
titlevb.net

          Dim ppta As New PowerPointApplication()
          Dim pres As Presentation = ppta.Create(PowerPointApplication.FileFormat.Pptx)
          Dim pptt As New PowerPointTemplate()
          pptt.Open(ppta, pres)