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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

View PDF in an access form 1

Status
Not open for further replies.

plcman

Programmer
Feb 17, 2001
92
GB
Hi

I would like to have the ability to view a PDF file within a form as you can view an image with an image frame.

I have the path to the pdf stored in my table. I would then like to hyperlink to the file by clicking on the pdf on the form

Any help would be great.
 
I would use the Microsoft Web Browser ActiveX control. It can be embedded right in your form. The pdf file will then be dispalyed within the web browser window.

Simply insert the Microsoft web browser ActiveX control on your form. In the onclick event of a button (or however you want to open the pdf file) add code something like this (assuming you named the web browser "owbMyPdfFile")

owbMyPdfFile.Navigate "\\url\YourFile.pdf"

Note: The syntax might be this:
owbMyPdfFild.Navigate = "\\url\YourFile.pdf"

(I have responded to several posts on using the web browser, so if the syntax is not quite right, search tek-tips for the other posts)
 
Hi

Thanks Fancyprairie, that works! Is there a way to suppress the toolbars permanently as they keep coming back after I close and reopen the form.



Regards

Alan Edwards

85% of statistics that are quoted are entirely made up!
 
Don't know. You might have to write some code, within Access, to tell Acrobat Reader to suppress the toolbars.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top