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# | 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}
{signature:vb.net | vb.net | }
Public Sub Open(ByVal filePath As String)
|
...
The complete path and file name of the template PowerPoint presentation file.
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 |
title | C# |
---|
{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 Block |
---|
vbnet | vbnet | title | {code}
{code:vbnet|title=VB.NET
}
'--- Open an Office Open XML PowerPoint (.pptx) file
powerPointTemplate.Open("C:\MyApplication\templates\EmployeeTrainingSlidesTemplate.pptx")
{code}
{example}