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

WebPageOptions.Application 属性 (发布服务器)WebPageOptions.Application Property (Publisher)

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

不使用对象识别符的情况下,此属性将返回表示发布服务器上的当前实例的应用程序对象。使用对象识别符,本属性返回应用程序对象,表示指定对象的创建者。当与一个 OLE 自动化对象一起使用,它将返回该对象的应用程序。Used without an object qualifier, this property returns an Application object that represents the current instance of Publisher. Used with an object qualifier, this property returns an Application object that represents the creator of the specified object. When used with an OLE Automation object, it returns the object's application.

语法Syntax

表达式应用程序expression. Application

_expression_A 表示WebPageOptions对象的变量。_expression_A variable that represents a WebPageOptions object.

示例Example

以下示例显示了 Publisher 的版本和内部版本信息。This example displays the version and build information for Publisher.

With Application 
 MsgBox "Current Publisher: version " _ 
 &; .Version &; " build " &; .Build 
End With

以下示例显示创建当前出版物中第一页上的每个链接的 OLE 对象的应用程序名称。This example displays the name of the application that created each linked OLE object on page one of the active publication.

Dim shpOle As Shape 

For Each shpOle In ActiveDocument.Pages(1).Shapes 
 If shpOle.Type = pbLinkedOLEObject Then 
 MsgBox shpOle.OLEFormat.Application.Name 
 End If 
Next
© 2018 Microsoft