Skip to content

Instantly share code, notes, and snippets.

@pogin503
Created November 28, 2011 00:25
Show Gist options
  • Save pogin503/1398561 to your computer and use it in GitHub Desktop.
Save pogin503/1398561 to your computer and use it in GitHub Desktop.
OpenPowerPoint.vb
Imports System
Imports Microsoft.Office
Imports PowerPoint = Microsoft.Office.Interop.PowerPoint
Public Class Form1
Private Sub OpenPowerPoint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenPowerPoint.Click
Dim PPTApp As PowerPoint.Application = New PowerPoint.Application
PPTApp.Visible = True
Dim PPTFileName As String = "test.pptx"
Dim PPTFilePath As String = System.Environment.CurrentDirectory & "\..\..\" & _
PPTFileName
Dim PPTPresentations As PowerPoint.Presentations = PPTApp.Presentations
PPTPresentations.Open(PPTFilePath)
End Sub
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment