OriginLab Corporation - Scientific Graphing and Data Analysis Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis

pef_pptslide

Contents

Menu Information

Send Graphs to PowerPoint

Brief Information

Export all graphs in folder to PowerPoint Slides

Additional Information

Minimum Origin Version Required: 8.1 SR0

Command Line Usage

  1. pef_pptslide recursive:=0;
  2. pef_pptslide top:=10 bottom:=10 left:=10 right:=10 title:=2;

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Include Graphs in Subfolders recursive

Input

int

1
Specify whether to export graphs in subfolders to PowerPoint slides.
Include Embedded Graphs embed

Input

int

0
Specify whether to export embedded graphs to PowerPoint slides.
Insert Graphs as insert

Input

int

1
Specify the form of graphs when exported to PowerPoint slides.

Option list:

  • pic:Picture
Export graphs to PowerPoint slides as pictures.
  • embed:Embedded Object
Export graphs to PowerPoint slides as embedded objects. If you double-click on the graphs in Power Point, the graph will be opened in Origin.
Top Margin (%) top

Input

double

0
Specify the top margin of the slide.
Left Margin (%) left

Input

double

0
Specify the left margin of the slide.
Bottom Margin (%) bottom

Input

double

0
Specify the bottom margin of the slide.
Right Margin (%) right

Input

double

0
Specify the right margin of the slide.
Title Line title

Input

int

0
This variable is not visible in GUI. You can use it to specify where to show the title of the graph on the slide.

Option list:

  • None
    Do not show the title.
  • Top of Screen
    Show the title in the top of the slide.
  • Bottom of Screen
    Show the title in the bottom of the slide.

Description

This function is capable of exporting the graphs in a specified folder to PowerPoint slides. Each graph will be pasted into one slide in the PowerPoint file.

It offers an option to allow you to specify whether to export the graphs in the subfolders and whether to skip the hidden graphs that are not shortcuts.

The order of exportation is as follows: The graphs in the top folder will be exported first, then the graphs in subfolder will be exported. If there are more than one subfolder, alphabatical order will be applied to process the subfolders. For graphs in the same folder, the slide indices (index of Slide column in the Project Explorer, which can be change by dragging and dropping graphs in the Project Explorer.) of the graphs will be applied.

Note: To export graphs to PowerPoint slides, Microsoft Office must have been installed. If the version of Office is 2007, Office has to be upgraded to SP2. Or this X-Function will not work fine.

Examples

  1. Open the project named <Origin Installation Directory>\Samples\Graphing\Customizing Graphs.opj.
  2. Highlight the root folder (Customizing Graphs) of the project, then right-click and select Send Graphs to PowerPoint from the context menu to open the pef_pptslide dialog.
    Image:Pef_pptslide_example_1.png
  3. In the pef_pptslide dialog, change the settings as the following image shows.
    Image:Pef_pptslide_example_2.png
  4. Click the OK button, then the graphs in the project will be sent as embedded objects to the new created PowerPoint file. The slides of this file show as the image below. Then save this PowerPoint file.
    Image:Pef_pptslide_example_3.png

Related X-Functions

pef_slideshow