PublishObject.SourceType Property

Returns or sets the source type of the presentation to be published to HTML. Read/write.

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

Syntax

'Declaration
Property SourceType As PpPublishSourceType
    Get
    Set
'Usage
Dim instance As PublishObject
Dim value As PpPublishSourceType

value = instance.SourceType

instance.SourceType = value
PpPublishSourceType SourceType { get; set; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.PpPublishSourceType
PpPublishSourceType

Remarks

The value of the SourceType property can be one of these PpPublishSourceType constants.

ppPublishAll

ppPublishNamedSlideShow

ppPublishSlideRange

Use the ppPublishNamedSlideShow value to publish a custom slide show, specifying the name of the custom slide show by using the SlideShowName property.

Examples

This example publishes the specified slide range (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

See Also

Reference

PublishObject Interface

PublishObject Members

Microsoft.Office.Interop.PowerPoint Namespace