How to open Acrobat in One click !
Imports System.Diagnostics
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim proc As New Process()
With proc.StartInfo
.Arguments = "Your PDF Path eg:- C:\MyFiles\Ebook2007.pdf"
.UseShellExecute = True
.WindowStyle = ProcessWindowStyle.Maximized
.WorkingDirectory = "C:\Program Files\Adobe\Reader 8.0\Reader\" '<----- Set Acrobat Install Path
.FileName = "AcroRd32.exe" '<----- Set Acrobat Exe Name
End With
proc.Start()
proc.Close()
proc.Dispose()
End Sub
End Class
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment