Freigeben über


_Presentation.Export Method

Exports each slide in the presentation, using the specified graphics filter, and saves the exported files in the specified folder.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Sub Export ( _
    Path As String, _
    FilterName As String, _
    ScaleWidth As Integer, _
    ScaleHeight As Integer _
)
'Usage
Dim instance As _Presentation
Dim Path As String
Dim FilterName As String
Dim ScaleWidth As Integer
Dim ScaleHeight As Integer

instance.Export(Path, FilterName, ScaleWidth, _
    ScaleHeight)
void Export(
    string Path,
    string FilterName,
    int ScaleWidth,
    int ScaleHeight
)

Parameters

  • Path
    Type: System.String
    The path of the folder where you want to save the exported slides. You can include a full path; if you don't do this, Microsoft PowerPoint creates a subfolder in the current folder for the exported slides.
  • FilterName
    Type: System.String
    The graphics format in which you want to export slides. The specified graphics format must have an export filter registered in the Windows registry. You can specify either the registered extension or the registered filter name.
    PowerPoint will first search for a matching extension in the registry. If no extension that matches the specified string is found, PowerPoint will look for a filter name that matches.
  • ScaleWidth
    Type: System.Int32
    The width in pixels of an exported slide.
  • ScaleHeight
    Type: System.Int32
    The height in pixels of an exported slide.

Remarks

Exporting a presentation doesn't set the Saved property of a presentation to true.

PowerPoint uses the specified graphics filter to save each individual slide in the presentation. The names of the slides exported and saved to disk are determined by PowerPoint. They're typically saved by using names such as Slide1.wmf, Slide2.wmf. The path of the saved files is specified in the Path argument.

See Also

Reference

_Presentation Interface

_Presentation Members

Microsoft.Office.Interop.PowerPoint Namespace