PublishObjects Interface

A collection of PublishObject objects representing the set of complete or partial loaded presentations that are available for publishing to HTML.

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

Syntax

'Declaration
<GuidAttribute("914934CF-5A91-11CF-8700-00AA0060263B")> _
Public Interface PublishObjects _
    Inherits Collection
'Usage
Dim instance As PublishObjects
[GuidAttribute("914934CF-5A91-11CF-8700-00AA0060263B")]
public interface PublishObjects : Collection

Remarks

You can specify the content and attributes of the published presentation by setting various properties of the PublishObject object. For example, the SourceType property defines the portion of a loaded presentation to be published. The RangeStart property and the RangeEnd property specify the range of slides to publish, and the SpeakerNotes property designates whether or not to publish the speaker's notes.

You cannot add to the PublishObjects collection.

Examples

Use the PublishObjects property to return the PublishObjects collection. This example publishes slides three through five of the active presentation to HTML. It names the published presentation Mallard.htm.

With ActivePresentation.PublishObjects(1)

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

    .SourceType = ppPublishSlideRange

    .RangeStart = 3

    .RangeEnd = 5

    .Publish

End With

Use Item(index), where index is always "1", to return the single PublishObject object for a loaded presentation. There can be only one PublishObject object for each loaded presentation.

This example defines the PublishObject object to be the entire active presentation by setting the SourceType property to ppPublishAll.

ActivePresentation.PublishObjects.Item(1).SourceType = ppPublishAll

See Also

Reference

PublishObjects Members

Microsoft.Office.Interop.PowerPoint Namespace