Skip to main content
Participant
January 12, 2007
Question

Show PDF File in Windows Form using Visual Basic 2005

  • January 12, 2007
  • 39 replies
  • 26790 views
Hello.

I am a developer beginner in acrobat products.

I'm developing an application and I need to open one pdf file in one form with various controls, such as Text Boxes and so on, using visual basic 2005. I try to insert the Acrobat control in that form and it not works. What do I need to do to make this possible.

My configuration.

Windows XP Pro.
Visual Studio 2005 Pro.
Acrobat 7 Professional.

In the client computer I have to install Acrobat 7 Professional or I need only the Acrobat Reader?

Thanks.

Fernando Silva.

39 replies

Participant
April 1, 2008
This is for a VB editor not for visual studio 2005 Using (Menu: Project / Add Reference / COM tab / select "Adobe Acrobat 7.0 Browser Control Type Library 1.0" ) adds this to Bin and if you do this in the toolbar it not be usuable, you can not add it to the project. Is their not a solution?
Patrick_Leckey
Participating Frequently
March 5, 2008
Using the JSObject and the getField() method if it is an AcroForm or the xfa.resolveNode method if it is an XFA form.

There are plenty of demos using the JSObject in the SDK samples.
Participant
March 5, 2008
Thursday, March 2008.

Hello,

I am using Vs 2005 (VB) and designed a form to display PDF file content. This PDF file is a electronic form with a few fields in it.

How can I reference the PDF form fields so that I can extract the Filled-in values from the PDF form Fileds and use them in VB windows form ???

Any suggestions ?

Thanks.
Participant
January 18, 2008
i am doing a project that converts pdf files to xml ones...i wanted to knw if there is a simple way to do this?...coz the acrobat sdk (save as xml plugin looks very complicated 2 me)....is there no easy way , for eg. a free dll file that does the conversion?....a reply would be greatly appreciated ..... thanking u in advance...
Participant
November 4, 2007
Dear Md. Niamul Haque Khan,

Private Sub Command2_Click()
'Use this code. Call OpenSystemFile with the full path to the
pdf file.
'If Acrobat Reader is installed, it will be opened.

OpenSystemFile ("C:\Inetpub\ftproot\Sylvester\dewa.PDF")
End Sub

Public Function OpenSystemFile(ByVal sFileName As String) As Boolean
If Len(sFileName) > 0 Then
ShellExecute GetDesktopWindow(), vbNullString, sFileName, vbNullString, vbNullString, vbNormalFocus
OpenSystemFile = True
End If
End Function
Participating Frequently
August 4, 2007
Download the Acrobat SDK and read the documentation
Participant
August 4, 2007
hi,
i am working as a computer engineer in an international NGO, BRAC Afghanistan in Afghanistan. I am designing a form in visual basic. there will be one button and if i press that, one pdf file will open from a particular location. what are the visual basic codes for this?
Participant
July 6, 2007
Hello,
I did open PDF file in VB2005 Windows forms using "Adobe Acrobat 7.0 Browser Document" com contorl..

Me.AxAcroPDF1.LoadFile("PDF file")

It's working fine..But my requirement is.. How can get the TextFiled text from currently opened pdf file.

let me explain detailed..

I designed some fillable forms like Invoice,IT request form..i was did opening the fillable form in my vb.net windows application,If user do fill the form and click the button from my windows application..i want to get the Textfield values and to stored in the database.

Advance Thanks for ur kindly service

Regards
N.balamurugan
Participating Frequently
July 6, 2007
You cannot use the forms API in conjunction with the "Adobe Acrobat
7.0 Browser Document" . In fact, you can't use the forms API for a
document opened outside the Acrobat window at all.

The way to proceed here is to have a submit button which sends the
form data to a server process. (The server could be one you run
locally).

Aandi Inston
Participant
May 30, 2007
Thanks, Michael. You are right. I did have Adobe Acobat writer installed. I rmoved all of them and reinstalled Adobe Reader 7.0. It works now. But it is not a good solution to work like this.

Thanks again!
Participant
May 29, 2007
No, you do not need the SDK. More functions are available with Acrobat or SDK, but you can Load, Zoom, etc with Reader.

You might want to make sure you can open your file with Reader (not via your C program). Or try a different valid pdf file as a test.

Also make sure you do not have multiple versions of Reader/Acrobat installed / or even a memory effect of previous installations.
... it should work.