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

pemp_pptslide

Contents

Menu Information

Send Graphs to PowerPoint

Brief Information

Export selected graphs to PowerPoint Slides

Additional Information

Minimum Origin Version Required: 8.1 SR0

Command Line Usage

  1. pemp_pptslide insert:=pic;
  2. pemp_pptslide top:=10 bottom:=10 left:=10 right:=10 title:=2;

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Insert Graphs as insert

Input

int

1
Specify the graph type when exported into 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 PowerPoint, 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 accessible 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
    At the top of the slide.
  • Bottom of Screen
    At the bottom of the slide.

Description

This function is used to export the selected graphs into PowerPoint slides. Each graph will be pasted into one slide in the PowerPoint file. The order of exportation is the slide order (which can be seen in the Project Explorer) of the graphs.

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

This example is used to export four selected graphs to PowerPoint slides.

  1. Create a new project and import the data <Origin Program Directory>\Samples\Curve Fitting\Multiple Gaussians.dat.
  2. Highlight column B and select Plot: Line: Line to create Graph1.
  3. Repeat step 2 to create Graph2, Graph3 and Graph4 with column C, D and E respectively.
  4. In the Project Explorer, press the Ctrl key on the keyboard and click Graph1, Graph2, Graph3 and Graph4 to select them simultaneously.
    Image:Pemp_pptslide_1.png
  5. Run pemp_pptslide -d; in the command window to bring up the dialog.
  6. In the dialog, select Picture in Insert Graphs as and all margins in Slide Position branch are set to 10.
    Image:Pemp_pptslide_2.png
  7. Click the OK button, then the four selected graphs will be exported to PowerPoint slides by the slide order.

Related X-Functions

pemp_slideshow