Description
Opens a PowerPointWriter template presentation file from the specified disk location. A PowerPointWriter template is a file created in Microsoft PowerPoint that contains data markers where data source values will be inserted.
C#
public void Open(string filePath)
vb.net
Public Sub Open(ByVal filePath As String)
Parameters
filePath
The complete path and file name of the template PowerPoint presentation file.Exceptions
ArgumentException
Open will throw this exception ifnull (C#) or Nothing (VB.NET) or an empty string is passed to the method. This exception will also be thrown if the specified template file is not of a valid PowerPoint Office Open XML (.pptx or .pptm) file format.
FileNotFoundException
Open will throw this exception if the template's file path specified in the parameter is inaccessible or doesn't existExamples
C#
//--- Open an Office Open XML PowerPoint (.pptx) file powerPointTemplate.Open(@"C:\MyApplication\templates\EmployeeTrainingSlidesTemplate.pptx");
VB.NET
'--- Open an Office Open XML PowerPoint (.pptx) file
powerPointTemplate.Open("C:\MyApplication\templates\EmployeeTrainingSlidesTemplate.pptx")
