How do I add the Adobe PDF reader activex control to a form?

  • Thread starter Thread starter Rob Harrington
  • Start date Start date
R

Rob Harrington

In Access 2007 - I clicked activex controls on the design tab and selected
PDF reader. I tried entering the URL that points to my PDF file (stored in a
SharePoint document library) in the src property for this control, but it
doesn't stick. It blanks out my entry as soon as I hit enter. I then tried to
set the src property programattically in the onload event for the form, but
there is no src property listed for this control when I am in the VB editor.

Am I going about this wrong. I want to embed the display of a PDF document
in my form without having to click the link and have it open in another
window.

Thanks in advance for your help.

-Rob Harrington
 
Early Adobe ActiveX did this, but Adobe made it more difficult starting with
version 5.0. You might try using an IE browser control and open PDF document
within that.
 
Thank you Arvin. Where do I find the browser control? it doesn't show up as
one of the available activeX controls. Can you point me to an example or
documentation?

-Rob Harrington
 
I figured out how to turn on the web browser control and I added it to my
form, but when I try webBrowser3.Navigate = "www.mydomain.com" I get an error
that this method is not supported. I don't see a SRC or URL method - how to I
send a URL to my control?

-Rob
 
Navigate is the correct method. You need to use the http:// protocol, or for
local files, you need the full qualified path.
 
:sleep: Probably a bit late but thought I would update.

I am using the Adobe PDF Reader as an ActiveX Control on an Access 2007 form.

The OnLoad event for the form has the following line:

Me.Controlname.Object.src = "PDF_URL"

or

Me.Controlname.Object.src = "full file path"
 
Thanks Red17, you never know, its never too late. this came in handy just yesterday. Thanks.
 
Back
Top