Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example
Code Block
csharp
csharp
titleC#

          //--- Create a new Worksheet
          PowerPointApplication ppta = new PowerPointApplication();
          Presentation pres = ppta.Create(PowerPointWriter.FileFormat.Pptx);
          Slide slideslide1 = pres.Slides[0];

          //--- Get an existing Worksheet by index
          PowerPointApplication ppta = new PowerPointApplication();
          Presentation pres = ppta.Create();
          Slide slideslide1 = pres.Slides[0];

          //--- Get an existing Worksheet by name
          PowerPointApplication ppta = new PowerPointApplication();
          Presentation pres = ppta.Create();
          Slide slideslide1 = pres.Slides["Slide1"];
Code Block
vbnet
vbnet
titlevb.net
          '--- Create a new Worksheet
          Dim ppta As New PowerPointApplication()
          Dim pres As Presentation = ppta.Create(PowerPointWriter.FileFormat.Pptx)
          Dim slideslide1 As Slide = pres.Slides(0)

          '--- Get an existing Worksheet by index
          Dim ppta As New PowerPointApplication()
          Dim pres As Presentation = ppta.Create()
          Dim slideslide1 As Slide = pres.Slides(0)

          '--- Get an existing Worksheet by name
          Dim ppta As New PowerPointApplication()
          Dim pres As Presentation = ppta.Create()
          Dim slideslide1 As Slide = pres.Slides("Slide2")
        

...