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

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.

Signature
C#
C#
public void Open(string filePath)
Signature
vb.net
vb.net
Public Sub Open(ByVal filePath As String)
Parameters
Param
filePath
filePath

The complete path and file name of the template PowerPoint presentation file.

Exceptions
Exception
ArgumentException
ArgumentException

Open will throw this exception if null (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.

Exception
FileNotFoundException
FileNotFoundException

Open will throw this exception if the template's file path specified in the parameter is inaccessible or doesn't exist

Example
Code Block
csharp
csharp
titleC#
//--- Open an Office Open XML PowerPoint (.pptx) file
powerPointTemplate.Open(@"C:\MyApplication\templates\EmployeeTrainingSlidesTemplate.pptx");
Code Block
vbnet
vbnet
titleVB.NET

 '--- Open an Office Open XML PowerPoint (.pptx) file
 powerPointTemplate.Open("C:\MyApplication\templates\EmployeeTrainingSlidesTemplate.pptx")