Powerpoint: Difference between revisions

From AutoIt Wiki
Jump to navigation Jump to search
No edit summary
Line 19: Line 19:
=== PowerPoint ===
=== PowerPoint ===


===== Terms =====
===== Definitions =====
* '''SlideMaster''': A Slide Master is the top slide in a hierarchy of slides that stores information about the theme and slide layouts of a presentation, including the background, color, fonts, effects, placeholder sizes, and positioning.  
* '''SlideMaster''': A Slide Master is the top slide in a hierarchy of slides that stores information about the theme and slide layouts of a presentation, including the background, color, fonts, effects, placeholder sizes, and positioning.  
* '''HandoutMaster''': The Handout Master controls what the slides on the audience handouts will look like. The slide image placeholders show where slides are placed on the master.
* '''HandoutMaster''': The Handout Master controls what the slides on the audience handouts will look like. The slide image placeholders show where slides are placed on the master.
* '''NotesMaster''': The Notes Master lets you alter the appearance of the “Notes Page” presentation view.
* '''NotesMaster''': The Notes Master lets you alter the appearance of the “Notes Page” presentation view.
* '''TitleMaster''': The Title Master controls "title" slides. Typically just the first slide of your presentation.
* '''TitleMaster''': The Title Master controls "title" slides. Typically just the first slide of your presentation.
* '''ShapeRange''': Represents a subset of the Shapes in a Slide.
* '''SlideRange''': Represents a subset of the Slides in a Presentation.
* '''SlideRange''': Represents a subset of the Slides in a Presentation.
* '''ShapeRange''': Represents a subset of the Shapes in a Slide.
* The '''SlideNumber''' property of a Slide object is the actual number that appears in the lower-right corner of the Slide when you display slide numbers. This number is determined by the number of the Slide within the Presentation (the '''SlideIndex''' property value) and the starting slide number for the Presentation (the FirstSlideNumber property value).


===== Concepts =====
===== Concepts =====

Revision as of 17:35, 28 August 2021

This page is still a work in progress.

The PowerPoint UDF offers basic functions to control and manipulate Microsoft PowerPoint.

Concepts

UDF

The PowerPoint UDF is based on the following concept:

  • Use function _PPT_Open as the first step in your script to start up PowerPoint or to connect to a running instance.
  • Some functions allow to process just a single Slide and others allow a range of Slides.
    • The UDF always uses the SlideRange object when working with Slides.
      Use function _PPT_SlideRangeSet to specify the Slides to process, then call a function and pass the SlideRange as parameter.
    • For details please check the description of the specific function.
  • Some functions allow to process just a single Shape and others allow a range of Shapes.
    • The UDF always uses the ShapeRange object when working with Shapes.
      Use function _PPT_ShapeRangeSet to specify the Shapes to process, then call a function and pass the ShapeRange as parameter.
    • For details please check the description of the specific function.
  • Use function _PPT_Close as the last step in your script to shutdown PowerPoint or to release the connection to a running instance.

PowerPoint

Definitions
  • SlideMaster: A Slide Master is the top slide in a hierarchy of slides that stores information about the theme and slide layouts of a presentation, including the background, color, fonts, effects, placeholder sizes, and positioning.
  • HandoutMaster: The Handout Master controls what the slides on the audience handouts will look like. The slide image placeholders show where slides are placed on the master.
  • NotesMaster: The Notes Master lets you alter the appearance of the “Notes Page” presentation view.
  • TitleMaster: The Title Master controls "title" slides. Typically just the first slide of your presentation.
  • ShapeRange: Represents a subset of the Shapes in a Slide.
  • SlideRange: Represents a subset of the Slides in a Presentation.
  • The SlideNumber property of a Slide object is the actual number that appears in the lower-right corner of the Slide when you display slide numbers. This number is determined by the number of the Slide within the Presentation (the SlideIndex property value) and the starting slide number for the Presentation (the FirstSlideNumber property value).
Concepts

You can get an overview of the concepts of PowerPoint on this website.

Object model

The PowerPoint object model is described here.

Example Scripts

For single functions

Every function of the UDF comes with an example script (except internal functions). The example script is named like the function.

Extended Examples

Example scripts which describe more than a single function of the UDF are prefixed with _PPT_Example_.

Function specific pages

The following pages contain information for the functions that can be used for many different item types.

Find an Item

Further information on how to ...: Link

Tips and Tricks

SlideShow

To hide a Slide during a Slide Show use the following code:

$oPresentation.Slides(x).SlideShowTransition.Hidden = True ; Replace x with the SlideIndex or Name property of the Slide to hide