_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
- Path
Type: System.String
The path for the export.
- FixedFormatType
Type: Microsoft.Office.Interop.PowerPoint.PpFixedFormatType
The format to which the slides should be exported.
- Intent
Type: Microsoft.Office.Interop.PowerPoint.PpFixedFormatIntent
The purpose of the export.
- FrameSlides
Type: Microsoft.Office.Core.MsoTriState
Whether the slides to be exported should be bordered by a frame.
- HandoutOrder
Type: Microsoft.Office.Interop.PowerPoint.PpPrintHandoutOrder
The order in which the handout should be printed.
- OutputType
Type: Microsoft.Office.Interop.PowerPoint.PpPrintOutputType
The type of output.
- PrintHiddenSlides
Type: Microsoft.Office.Core.MsoTriState
Whether to print hidden slides.
- PrintRange
Type: Microsoft.Office.Interop.PowerPoint.PrintRange
The slide range.
- RangeType
Type: Microsoft.Office.Interop.PowerPoint.PpPrintRangeType
The type of slide range.
- SlideShowName
Type: System.String
The name of the slide show.
- 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 |
---|---|
The default. Does not display the embedded object (or link) as an icon. |
|
Displays the embedded object (or link) as an icon. |
The Intent parameter value can be one of these PpFixedFormatIntent constants.
Constant |
Description |
---|---|
Intended to be published online and printed. |
|
The default. Intended to be published only online. |
The FrameSlides parameter value can be one of these MsoTriState constants.
Constant |
Description |
---|---|
The default. Does not frame exported slides. |
|
Frames exported slides. |
The HandoutOrder parameter value can be one of these PpPrintHandoutOrder constants.
Constant |
Description |
---|---|
Prints handouts with consecutive slides displayed horizontally first (in horizontal rows). |
|
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 |
---|---|
Prints four slides per handout page. |
|
Prints nine slides per handout page. |
|
Prints notes pages. |
|
Prints one slide per handout page. |
|
Prints outline view. |
|
Prints six slides per handout page. |
|
Prints all slides in the presentation. The default. |
|
Prints three slides per handout page. |
|
Prints two slides per handout page. |
The PrintHiddenSlides parameter value can be one of these MsoTriState constants.
Constant |
Description |
---|---|
The default. Does not print hidden slides. |
|
Prints hidden slides. |
The RangeType parameter value can be one of these PpPrintRangeType constants.
Constant |
Description |
---|---|
The default. Exports all slides. |
|
Exports only the current slide. |
|
Exports the named (custom) slide show specified in SlideShowName. |
|
Exports selected slides. |
|
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.