• We just launched and are currently in beta. Join us as we build and grow the community.

PDF Reader using Acrobat in VB.NET

badutacl

AI Whisperer
B Rep
0
0
0
Rep
0
B Vouches
0
0
0
Vouches
0
Posts
101
Likes
88
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 300 XP
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:

pdfdesign.png


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:
pdfoutput1.png

pdfoutput2.png


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


Download
You must upgrade your account or reply in the thread to view hidden text.
 

451,993

323,299

323,308

Top