_Presentation.SaveAs Method
Saves a presentation that's never been saved, or saves a previously saved presentation under a different name.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Sub SaveAs ( _
FileName As String, _
FileFormat As PpSaveAsFileType, _
EmbedTrueTypeFonts As MsoTriState _
)
'Usage
Dim instance As _Presentation
Dim FileName As String
Dim FileFormat As PpSaveAsFileType
Dim EmbedTrueTypeFonts As MsoTriState
instance.SaveAs(FileName, FileFormat, _
EmbedTrueTypeFonts)
void SaveAs(
string FileName,
PpSaveAsFileType FileFormat,
MsoTriState EmbedTrueTypeFonts
)
Parameters
- FileName
Type: System.String
Specifies the name to save the file under. If you don't include a full path, PowerPoint saves the file in the current folder.
- FileFormat
Type: Microsoft.Office.Interop.PowerPoint.PpSaveAsFileType
Specifies the saved file format. If this argument is omitted, the file is saved in the default file format (ppSaveAsDefault).
- EmbedTrueTypeFonts
Type: Microsoft.Office.Core.MsoTriState
Specifies whether PowerPoint embeds TrueType fonts in the saved presentation.
Remarks
The FileFormat parameter value can be one of these PpSaveAsFileType constants. The default is ppSaveAsDefault.
The EmbedTrueTypeFonts parameter value can be one of these MsoTriState constants.
Constant |
Description |
---|---|
TrueType fonts are not embedded. |
|
msoTriStateMixed |
Embedded fonts are a mixture of TrueType and non-TrueType. The default. |
TrueType fonts are embedded. |