Powerpoint: Difference between revisions

From AutoIt Wiki
Jump to navigation Jump to search
Line 10: Line 10:
* Use function ''_PPT_Open'' as the first step in your script to start up PowerPoint or to connect to a running instance.
* 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.
* 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.<br>Use function ''_PPT_SlideRangeSet'' to specify the Slides to process, then call a function and pass the range as parameter.
** The UDF always uses the SlideRange object when working with Slides.<br>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.
** 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.
* 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.<br>Use function ''_PPT_ShapeRangeSet'' to specify the Shapes to process, then call a function and pass the range as parameter.
** The UDF always uses the ShapeRange object when working with Shapes.<br>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.
** 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.
* Use function ''_PPT_Close'' as the last step in your script to shutdown PowerPoint or to release the connection to a running instance.

Revision as of 18:43, 24 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

Terms
  • 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.
  • SlideRange: Represents a subset of the Slides in a Presentation.
  • ShapeRange: Represents a subset of the Shapes in a Slide.
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