ClosePowerPointFile

Closes the specified PowerPoint file if the file is open.

Syntax

ClosePowerPointFile(filePath)

Parameters

Parameter

Type

Description

filePath

string

Full path of the PowerPoint file

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")
pptFilePath = r"C:\Data\NexResults.ppt"
nex.SendGraphicsToPowerPoint(doc, pptFilePath, "Slide 1", "Sample slide", 1, 0)
nex.ClosePowerPointFile(pptFilePath)

NexScript

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