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
Wiki Markup
{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.
{excerpt}
{signature:C#}
public void Open(string filePath)
{signature}

{signature:vb.net}
Public Sub Open(ByVal filePath As String)
{signature}

{parameters}
{param:filePath}
The complete path and file name of the template PowerPoint presentation file.
{param}


{exceptions}
{exception: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}
{exception:FileNotFoundException}
Open will throw this exception if the template's file path specified in the parameter is inaccessible or doesn't exist
{exception}

{example}
{code:csharp|title=C#}
//--- Open an Office Open XML PowerPoint (.pptx) file
powerPointTemplate.Open(@"C:\MyApplication\templates\EmployeeTrainingSlidesTemplate.pptx");
{code}
{code:vbnet|title=VB.NET}

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