SendGraphicsToPowerPoint

Sends the contents of the first graphical window of the document to the specified PowerPoint presentation.

Syntax

SendGraphicsToPowerPoint(doc, presentationPath, slideTitle, comment, addParameters, useBitmap)

Parameters

Parameter

Type

Description

doc

documentReference

Reference to the document.

presentationPath

string

Path of the presentation file. File extension should be .ppt (NeuroExplorer cannot save .pptx files). If file extension is not .ppt, .ppt extension is added to the file path.

slideTitle

string

Slide title.

comment

string

Slide comment. Will be shown below graphics.

addParameters

number

If 1, add a text box with analysis parameter values.

useBitmap

number

If 1, transfer graphics as a bitmap, otherwise, transfer graphics as a metafile.

Return

None.

Note

See Specifying Windows file paths in Python for details on specifying file paths with backslashes in Python.

Examples

Python

import nex
doc = nex.GetActiveDocument()
nex.ApplyTemplate(doc, "Autocorrelograms")
nex.SendGraphicsToPowerPoint(doc, "C:\\Data\\NexResults.ppt", "Slide 1", "Sample slide", 1, 0)

NexScript

doc = GetActiveDocument()
ApplyTemplate(doc, "Autocorrelograms")
SendGraphicsToPowerPoint(doc, "C:\Data\NexResults.ppt", "Slide 1", "Sample slide", 1, 0)