|
|
Title | Open a PDF file in an Adobe Reader control within an application in Visual Basic .NET |
Description | This example shows how to open a PDF file in an Adobe Reader control within an application in Visual Basic .NET. |
Keywords | PDF file, Adobe, open PDF file, Adobe Reader, Adobe Acrobat, Acrobat, Visual Basic .NET, VB.NET |
Categories | Windows, VB.NET, Files and Directories |
|
|
This only works if you have Adobe Reader installed. Then:
- On the Toolbox, right-click and pick "Choose Items."
- Click the "COM Components" tab.
- Select "Adobe PDF Reader" and click OK.
- Add a PDF reader to the form.
Now you can use the reader control's src property to open the PDF file.
|
|
pdfReader.src = txtFile.Text
|
|
|
|
|
|