共用方式為


PublishObject.FileName Property

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.

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

Syntax

'Declaration
Property FileName As String
    Get
    Set
'Usage
Dim instance As PublishObject
Dim value As String

value = instance.FileName

instance.FileName = value
string FileName { get; set; }

Property Value

Type: System.String

Remarks

The FileName property generates an error if a folder in the specified path does not exist.

See Also

Reference

PublishObject Interface

PublishObject Members

Microsoft.Office.Interop.PowerPoint Namespace