Table of contents
TOC
折叠目录
展开目录

PublishObject.FileName 属性 (PowerPoint)PublishObject.FileName Property (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

返回或设置在发布整个或部分活动演示文稿时所创建的 Web 演示文稿的路径和文件名。可读/写。Returns or sets the path and file name of the Web presentation created when all or part of the active presentation is published. Read/write.

语法Syntax

表达式文件名expression. FileName

表达式_一个表示PublishObject对象的变量。_expression A variable that represents a PublishObject object.

返回值Return Value

字符串String

注解Remarks

如果不存在指定的路径中的文件夹,文件名属性将产生错误。The FileName property generates an error if a folder in the specified path does not exist.

示例Example

本示例将当前演示文稿的第三张幻灯片到第五张幻灯片以 HTML 格式发布。本示例还将发布的演示文稿命名为“Mallard.htm”并将其保存在“Test”文件夹中。This example publishes slides three through five of the active presentation to HTML. It names the published presentation Mallard.htm and saves it in the Test folder.

With ActivePresentation.PublishObjects(1)

    .FileName = "C:\Test\Mallard.htm"

    .SourceType = ppPublishSlideRange

    .RangeStart = 3

    .RangeEnd = 5

    .Publish

End With

另请参阅See also

概念Concepts

PublishObject 对象PublishObject Object

© 2018 Microsoft