หรือ Add Reference จาก COM ของ Windows Server (Microsoft PowerPoint 11.0 Object Library)
Syntax
Imports Microsoft.Office.Interop.PowerPoint
Sample
Dim ppApp As Microsoft.Office.Interop.PowerPoint.Application
Try
ppApp = New Microsoft.Office.Interop.PowerPoint.Application
Me.lblText.Text = "Object PowerPoint Created"
Catch ex As Exception
Me.lblText.Text = "PowerPoint Err. " & ex.Message
End Try
Error Message
PowerPoint Err. Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80070005.
1.Interop.PowerPoint.dll
Imports PowerPoint
Dim ppApp As New PowerPoint.Application
2.Microsoft.Office.Interop.PowerPoint.dll
Imports Microsoft.Office.Interop.PowerPoint.Application
Dim ppApp As New Microsoft.Office.Interop.PowerPoint.Application