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 ofPowerPointApplication that was used to create the spreadsheet.
presentation
A Presentation object representing the PowerPoint file created withPowerPointApplication.
Exceptions
ArgumentNullException
Open will throw this exception ifnull (C#) or Nothing (VB.NET) is passed to the method.
ArgumentException
Remarks
You can usePowerPointApplication 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)
