Presentation![]() ![]() ![]() |
包含演示文稿的打印选项。
注意 指定 PrintOut 方法的可选参数 From、To、Copies 和 Collate 将设置 PrintOptions 对象的相应属性。
使用 PrintOptions 属性返回 PrintOptions 对象。以下示例以非逐份方式打印当前演示文稿所有幻灯片(无论可见或隐藏)的两个彩色副本。该示例还调整每个幻灯片的大小以适应打印页,并给每个幻灯片加细边框。
With ActivePresentation
With .PrintOptions
.NumberOfCopies = 2
.Collate = False
.PrintColorType = ppPrintColor
.PrintHiddenSlides = True
.FitToPage = True
.FrameSlides = True
.OutputType = ppPrintOutputSlides
End With
.PrintOut
End With
使用 RangeType 属性指定打印整个演示文稿或指定部分。如果只想打印特定幻灯片,请将 RangeType 属性设为 ppPrintSlideRange,并使用 Ranges 属性指定要打印的页。以下示例打印当前演示文稿中第一、四、五、六张幻灯片。
With ActivePresentation
With .PrintOptions
.RangeType = ppPrintSlideRange
With .Ranges
.Add 1, 1
.Add 4, 6
End With
End With
.PrintOut
End With