_Slide.PublishSlides Method
Publishes the specified slide to the specified location.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Sub PublishSlides ( _
SlideLibraryUrl As String, _
Overwrite As Boolean, _
UseSlideOrder As Boolean _
)
'Usage
Dim instance As _Slide
Dim SlideLibraryUrl As String
Dim Overwrite As Boolean
Dim UseSlideOrder As Boolean
instance.PublishSlides(SlideLibraryUrl, _
Overwrite, UseSlideOrder)
void PublishSlides(
string SlideLibraryUrl,
bool Overwrite,
bool UseSlideOrder
)
Parameters
- SlideLibraryUrl
Type: System.String
The URL to which to publish the slide library.
- Overwrite
Type: System.Boolean
Whether to overwrite existing content at SlideLibraryURL. The default is False.
- UseSlideOrder
Type: System.Boolean
Whether to use the existing slide order. The default is False.
Examples
The following example shows how to publish slide one in the active presentation to a specific URL. Before running this code, substitute a valid URL for .
Public Sub PublishSlides_Example()
Dim pptSlide As Slide
Set pptSlide = ActivePresentation.Slides(1)
pptSlide.PublishSlides ("http://")
End Sub