PDF Reader using Acrobat in VB.NET

In this tutorial, we will create a program that read PDF file using an Acrobat software in vb.net. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application. 2. Next, add only one Button named Button1 and labeled it as "Open PDF File". Insert a textbox named TextBox1 for inputting the file directory and file name of the pdf you wanted to view. You must design your interface like this: design 3. Import this library below.
  1. Imports System.Diagnostics
This namespace provides the diagnostic classes. 4. Now put this code in your Button1_Click. Create a process.
  1. Dim proc As New Process()
Filedirectory and filename input in TextBox1, use shell and will minimized the window for opening.
  1.  proc.StartInfo.Arguments = TextBox1.Text
  2. proc.StartInfo.UseShellExecute = True
  3. proc.StartInfo.WindowStyle = ProcessWindowStyle.Maximized
Set Acrobat Install Path.
  1. proc.StartInfo.WorkingDirectory = "C:\Program Files\Adobe\Reader 8.0\Reader\"
Set Acrobat Exe Name
  1.  proc.StartInfo.FileName = "AcroRd32.exe"
Set the process start, close, and dispose.
  1.         proc.Start()
  2.         proc.Close()
  3.         proc.Dispose()
Output: output output Download the source code below and try it! :) For more inquiries just contact my number or e-mail below. Best Regards,

Engr. Lyndon R. Bermoy
IT Instructor/System Developer/Android Developer
Mobile: 09079373999
Telephone: 826-9296
E-mail:[email protected]

Visit and like my page on Facebook at: Bermz ISware Solutions

Subscribe at my YouTube Channel at: SerBermz

Add new comment