Skip to end of metadata
Go to start of metadata

Description

Passes a presentation from PowerPointApplication to PowerPointTemplate.

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

Parameters

pptApplication
The instance of PowerPointApplication that was used to create the spreadsheet.
presentation
A Presentation object representing the PowerPoint file created with PowerPointApplication.

Exceptions

ArgumentNullException
Open will throw this exception if null (C#) or Nothing (VB.NET) is passed to the method.
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.

Examples

C#

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

        
vb.net

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

        
  • No labels