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

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
 
A

Arvin Meyer MVP

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.
 
R

Rob Harrington

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
 
R

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
 
A

Arvin Meyer MVP

Navigate is the correct method. You need to use the http:// protocol, or for
local files, you need the full qualified path.
 
Joined
Apr 5, 2011
Messages
1
Reaction score
0
: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"
 
Joined
Feb 18, 2012
Messages
1
Reaction score
0
Thanks Red17, you never know, its never too late. this came in handy just yesterday. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top