Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Passes a presentation from PowerPointApplication to PowerPointTemplate.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Passes a presentation from [PowerPointApplication|PowerPointApplication] to [PowerPointTemplate|PowerPointTemplate]. 
{excerpt}
{signature:C#}
 public virtual void Open(PowerPointApplication pptApplication, Presentation presentation)
Signature
{signature}
{signature:vb.net
vb.net
}
Public Overridable Sub Open(ByVal pptApplication As PowerPointApplication, ByVal presentation As Presentation)
Parameters

...

The instance of PowerPointApplication that was used to create the spreadsheet.

...

A Presentation object representing the PowerPoint file created with PowerPointApplication.

Exceptions

...

Open will throw this exception if null (C#) or Nothing (VB.NET) is passed to the method.

...

Remarks

You can use PowerPointApplication to create a document with data markers (a template) and pass the file to PowerPointTemplate to populate the data markers.

{signature}
{parameters}
{param:pptApplication}The instance of {{PowerPointApplication}} that was used to create the spreadsheet.
{param}
{param:presentation}A [Presentation|Presentation] object representing the PowerPoint file created with {{PowerPointApplication}}.
{param}
{exceptions}
{exception:ArgumentNullException}[Open|PowerPointTemplate.Open] will throw this exception if {{null}} \(C\#\) or {{Nothing}} \(VB.NET\) is passed to the method.
{exception}
{exception:ArgumentException}
{exception}
{remarks}
You can use {{PowerPointApplication}} to create a document with data markers \(a template\) and pass the file to {{PowerPointTemplate}} to populate the data markers.

{remarks}
{example}{code:csharp|title=C#}

          PowerPointApplication ppta = new PowerPointApplication();
          Presentation pres = ppta.Create(PowerPointApplication.FileFormat.Pptx);
          PowerPointTemplate pptt = new PowerPointTemplate();
          pptt.Open(ppta, pres);

        
{code}
{code:vbnet|title=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)

        {code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vbnetvbnettitle