Compartilhar via


_Presentation.ExportAsFixedFormat Method

Publishes a copy of a Microsoft PowerPoint presentation as a file in a fixed format, either PDF or XPS.

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

Syntax

'Declaration
Sub ExportAsFixedFormat ( _
    Path As String, _
    FixedFormatType As PpFixedFormatType, _
    Intent As PpFixedFormatIntent, _
    FrameSlides As MsoTriState, _
    HandoutOrder As PpPrintHandoutOrder, _
    OutputType As PpPrintOutputType, _
    PrintHiddenSlides As MsoTriState, _
    PrintRange As PrintRange, _
    RangeType As PpPrintRangeType, _
    SlideShowName As String, _
    IncludeDocProperties As Boolean, _
    KeepIRMSettings As Boolean, _
    DocStructureTags As Boolean, _
    BitmapMissingFonts As Boolean, _
    UseISO19005_1 As Boolean, _
    ExternalExporter As Object _
)
'Usage
Dim instance As _Presentation
Dim Path As String
Dim FixedFormatType As PpFixedFormatType
Dim Intent As PpFixedFormatIntent
Dim FrameSlides As MsoTriState
Dim HandoutOrder As PpPrintHandoutOrder
Dim OutputType As PpPrintOutputType
Dim PrintHiddenSlides As MsoTriState
Dim PrintRange As PrintRange
Dim RangeType As PpPrintRangeType
Dim SlideShowName As String
Dim IncludeDocProperties As Boolean
Dim KeepIRMSettings As Boolean
Dim DocStructureTags As Boolean
Dim BitmapMissingFonts As Boolean
Dim UseISO19005_1 As Boolean
Dim ExternalExporter As Object

instance.ExportAsFixedFormat(Path, FixedFormatType, _
    Intent, FrameSlides, HandoutOrder, _
    OutputType, PrintHiddenSlides, PrintRange, _
    RangeType, SlideShowName, IncludeDocProperties, _
    KeepIRMSettings, DocStructureTags, _
    BitmapMissingFonts, UseISO19005_1, _
    ExternalExporter)
void ExportAsFixedFormat(
    string Path,
    PpFixedFormatType FixedFormatType,
    PpFixedFormatIntent Intent,
    MsoTriState FrameSlides,
    PpPrintHandoutOrder HandoutOrder,
    PpPrintOutputType OutputType,
    MsoTriState PrintHiddenSlides,
    PrintRange PrintRange,
    PpPrintRangeType RangeType,
    string SlideShowName,
    bool IncludeDocProperties,
    bool KeepIRMSettings,
    bool DocStructureTags,
    bool BitmapMissingFonts,
    bool UseISO19005_1,
    Object ExternalExporter
)

Parameters

  • IncludeDocProperties
    Type: System.Boolean
    Whether the document properties should also be exported. The default is false.
  • KeepIRMSettings
    Type: System.Boolean
    Whether the IRM settings should also be exported. The default is true.
  • DocStructureTags
    Type: System.Boolean
    Whether to include document structure tags to improve document accessibility. The default is true.
  • BitmapMissingFonts
    Type: System.Boolean
    Whether to include a bitmap of the text. The default is true.
  • UseISO19005_1
    Type: System.Boolean
    Whether the resulting document is compliant with ISO 19005-1 (PDF/A). The default is false.
  • ExternalExporter
    Type: System.Object
    A pointer to an Office add-in that implements the IMsoDocExporter COM interface and allows calls to an alternate implementation of code. The default is a a null reference (Nothing in Visual Basic) pointer.

Remarks

The [M:Microsoft.Office.Interop.PowerPoint._Presentation.ExportAsFixedFormat(System.String,Microsoft.Office.Interop.PowerPoint.PpFixedFormatType,Microsoft.Office.Interop.PowerPoint.PpFixedFormatIntent,Microsoft.Office.Core.MsoTriState,Microsoft.Office.Interop.PowerPoint.PpPrintHandoutOrder,Microsoft.Office.Interop.PowerPoint.PpPrintOutputType,Microsoft.Office.Core.MsoTriState,Microsoft.Office.Interop.PowerPoint.PrintRange,Microsoft.Office.Interop.PowerPoint.PpPrintRangeType,System.String,System.Boolean,] method is the equivalent of the Save As PDF or XPS command on the Office menu in the PowerPoint user interface. The method creates a file that contains a static view of the active presentation.

The FixedFormatType parameter value can be one of these PpFixedFormatType constants.

Constant

Description

msoFalse

The default. Does not display the embedded object (or link) as an icon.

msoTrue

Displays the embedded object (or link) as an icon.

The Intent parameter value can be one of these PpFixedFormatIntent constants.

Constant

Description

ppFixedFormatIntentPrint

Intended to be published online and printed.

ppFixedFormatIntentScreen

The default. Intended to be published only online.

The FrameSlides parameter value can be one of these MsoTriState constants.

Constant

Description

msoFalse

The default. Does not frame exported slides.

msoTrue

Frames exported slides.

The HandoutOrder parameter value can be one of these PpPrintHandoutOrder constants.

Constant

Description

ppPrintHandoutHorizontalFirst

Prints handouts with consecutive slides displayed horizontally first (in horizontal rows).

ppPrintHandoutVerticalFirst

The default. Prints handouts with consecutive slides displayed vertically first (in vertical columns).

The OutputType parameter value can be a combination of one or more of these PpPrintOutputType constants.

Constant

Description

ppPrintOutputBuildSlides

ppPrintOutputFourSlideHandouts

Prints four slides per handout page.

ppPrintOutputNineSlideHandouts

Prints nine slides per handout page.

ppPrintOutputNotesPages

Prints notes pages.

ppPrintOutputOneSlideHandouts

Prints one slide per handout page.

ppPrintOutputOutline

Prints outline view.

ppPrintOutputSixSlideHandouts

Prints six slides per handout page.

ppPrintOutputSlides

Prints all slides in the presentation. The default.

ppPrintOutputThreeSlideHandouts

Prints three slides per handout page.

ppPrintOutputTwoSlideHandouts

Prints two slides per handout page.

The PrintHiddenSlides parameter value can be one of these MsoTriState constants.

Constant

Description

msoFalse

The default. Does not print hidden slides.

msoTrue

Prints hidden slides.

The RangeType parameter value can be one of these PpPrintRangeType constants.

Constant

Description

ppPrintAll

The default. Exports all slides.

ppPrintCurrent

Exports only the current slide.

ppPrintNamedSlideShow

Exports the named (custom) slide show specified in SlideShowName.

ppPrintSelection

Exports selected slides.

ppPrintSlideRange

Exports the specified slide range.

Set BitmapMissingFonts to true when font licensing does not permit you to embed a font in the PDF file. If you set this parameter to false, the font is referenced, and the viewer's computer substitutes an appropriate font if the authored one is not available.

See Also

Reference

_Presentation Interface

_Presentation Members

Microsoft.Office.Interop.PowerPoint Namespace