PDF Reader using Acrobat in VB.NET
Submitted by donbermoy on Tuesday, April 8, 2014 - 19:04.
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:
3. Import this library below.
This namespace provides the diagnostic classes.
4. Now put this code in your Button1_Click.
Create a process.
Filedirectory and filename input in TextBox1, use shell and will minimized the window for opening.
Set Acrobat Install Path.
Set Acrobat Exe Name
Set the process start, close, and dispose.
Output:
Download the source code below and try it! :)
For more inquiries just contact my number or e-mail below.
Best Regards,
- Imports System.Diagnostics
- Dim proc As New Process()
- proc.StartInfo.Arguments = TextBox1.Text
- proc.StartInfo.UseShellExecute = True
- proc.StartInfo.WindowStyle = ProcessWindowStyle.Maximized
- proc.StartInfo.WorkingDirectory = "C:\Program Files\Adobe\Reader 8.0\Reader\"
- proc.StartInfo.FileName = "AcroRd32.exe"
- proc.Start()
- proc.Dispose()
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
- 734 views