WPS 基础接口 > 演示 API 参考 > Presentation > 方法 > Presentation.SaveAs 方法
保存未保存过的演示文稿,或以其他文件名保存已保存过的演示文稿。

语法

表达式.SaveAs(Filename, FileFormat, EmbedFonts)

表达式   一个代表 Presentation 对象的变量。

参数

名称 必选/可选 数据类型 描述
Filename 必选 String 指定文件的保存名称。如果不指定完整路径,WPP会将该文件保存于当前文件夹中。
FileFormat 可选 PpSaveAsFileType 指定文件的保存格式。如果省略该参数,则文件将以WPP 当前版本中的演示文稿格式保存 (ppSaveAsPresentation)。
EmbedFonts 可选 MsoTriState 指定WPP 是否将 TrueType 字体嵌入保存的演示文稿中。

说明

PpSaveAsFileType 可以是下列 PpSaveAsFileType 常量之一。
ppSaveAsHTMLv3
ppSaveAsAddIn
ppSaveAsBMP
ppSaveAsDefault
ppSaveAsGIF
ppSaveAsHTML
ppSaveAsHTMLDual
ppSaveAsJPG
ppSaveAsMetaFile
ppSaveAsPNG
ppSaveAsPowerPoint3
ppSaveAsPowerPoint4
ppSaveAsPowerPoint4FarEast
ppSaveAsPowerPoint7
ppSaveAsPresentation 默认值。
ppSaveAsRTF
ppSaveAsShow
ppSaveAsTemplate
ppSaveAsTIF
ppSaveAsWebArchive
MsoTriState 可以是下列 MsoTriState 常量之一。
msoCTrue
msoFalse
msoTriStateMixed 默认值。
msoTriStateToggle
msoTrueWPP 将 TrueType 字体嵌入到保存的演示文稿中。

示例

本示例以文件名“New Format Copy.ppt”保存当前演示文稿的一个副本。默认情况下,该副本以当前版本的WPP 演示文稿格式保存,然后以文件名“Old Format Copy”另存为WPP 4.0 格式文件。

示例代码
let tion= Application.ActivePresentation
tion.SaveCopyAs("New Format Copy")
tion.SaveAs("Old Format Copy", ppSaveAsPowerPoint4)

Save As 方法 SaveAs 方法 另存为


请参阅