Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PDF Documents 1

Status
Not open for further replies.

svagelis

Programmer
May 2, 2001
121
GR
Is there any way of displaying PDF documents in my VB application?

Thanks in advance
 
Yes, all you have to do is right-click on your toolbox in Visual Basic and select Components (this is in VB6, I don't remember if it is the same for the other versions). Then make sure that Acrobat Control for Activex is selected and the only thing left to do is add the Acrobat Activex in your VB form.

the .src property is the one you have to change in order to display the pdf file.

Ex. Pdf1.src = "path of your file"

hope this helps !

Yc
 
Never knew this. I used to shell the Acrobat Reader. I like this method better and it sure is faster. Thanx.

Herman :-Q
 
Well i ve dispovered that ocx some time ago.
My objective was to search in the pdf for specific text given by the user at runtime. Unfortunately there was no method to do that. I even tried to send keys to the menu of the activex but it didnt worked so well.
 
Did you look at the Acrobat SDK? It seems you can search in documents by using API calls. I've downloaded the SDK from Adobe's site and will have a look at it.

Herman :-Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top