is there some way to put a pdf file in a image control in access 2010

i want to make a image and the image control source will be a pdf file (

i use the image control for to see some object based on the specific record and i  don't want to use the bound object frame because i have a lot of files that will make very heavier  the database file
so i use a image control with vba that change the image on every record based on some text field.
bill201Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

borkiCommented:
I don't understand what "image" you expect to display in your control if the source file is a pdf file, some sort of a preview? I think you are better off to launch the pdf application (Foxit, Acrobat) from the file name as discussed in your previous question 27511140.
0
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Many people use a WebBrowser control to open PDF files, if you need to embed the object on your Access form. Using methods like FollowHyperlink are fine, but they'll open the object in whatever program is associated with it, which may not be what you're after.

To do this, embed a Microsoft Webbrowser control onto your form, size it appropriately (this is important to do BEFORE you switch over to normal view, due to the odd behavior of Access with ActiveX controls), and then use this code to show your PDF:

Me.YourWebBrowserControl.Navigate2 = "full path to your PDF file"
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeffrey CoachmanMIS LiasonCommented:
<No points wanted>

AFAIK, a pdf can't be used as the "Source" for an image control anyway.
(it must be a valid supported "image" type (ex.: BMP, Gif, Jpg, ...etc)

You can use one of the many utilities to convert a PDF to an image, but I don't think this extra step is worth the trouble...

So I agree with LSM to use the webbrowser control if this is to be used on a Form
(Sadly, I don't know of a way to make the work in a Report...)

JeffCoachman
0
Jeffrey CoachmanMIS LiasonCommented:
<Again, no points wanted>

...alternate code syntax to I have also used:

WebBrowser0.Navigate URL:="C:\YourFolder\YourFille.pdf"
WebBrowser0.Navigate "C:\YourFolder\YourFille.pdf"

0
bill201Author Commented:
thanks for you and happy holiday
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.