Launching Adobe in MFC application.

Hi experts,

I have an MFC application that opens an adobe file when a certain button is pressed.  Currently, this Adobe file is opened with whichever version of Adobe (7, 8, or 9)  installed on the users' PC.  Therefore, the result is not consistent.   I would like to have the MFC application opens the Adobe file using a single version of Adobe regardless of the version installed.  My questions are:  Is this possible? and If it is, which Adobe dll's do I need to include in the application for deployment?  I am thinking of placing the Adobe dll's at the application folder rather than at the System folder since I do not wish to override the current Adobe version.

Many thanks in advance.
ChiliPequinAsked:
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.

mrwad99Commented:
As you have said, the PDF will open in whichever version of Acrobat is installed.  To get it to open in another version, you will have to rely on another version also being installed: this is possible, but I don't think many users will want an older version installed.

If you know an older version is installed, you could just open your document via the command line, eg

<path to acrobat.exe> <path to document>

You can do this via CreateProcess() (http://msdn.microsoft.com/en-us/library/ms682425%28VS.85%29.aspx)

You could not distribute another executable on its own, although you can distribute a whole installer.  So if you want to silently install another version for the duration of your app, you could, but I don't think this is a good idea.  It would be nice if you could run reader in "compatibility" mode, but it does not look like you can.
0
jkrCommented:
>>I am thinking of placing the Adobe dll's at the application folder rather than
>>at the System folder

In short: You can't. Please see the Adobe's statement about redistribution, inb http://www.adobe.com/products/eulas/pdfs/Reader_Player_AIR_WWEULA-Combined-20080204_1313.pdf - the relevant part is attached below:
Adobe-License.JPG
0
ChiliPequinAuthor Commented:
Thanks mrwat99 and jkr very much for your prompt response.  In research for this, I notice that there is a product called Quick pdf libraries.  I am looking into this to see if these can be used to include in the application to view, save, and email pdf file. Thanks again for your help.
0
jkrCommented:
If V7 works for you, you might be interested in reading how to host the Adobe Reader ActiveX Control in your app. See http://www.codeproject.com/KB/miscctrl/acroview.aspx ("Adobe ActiveX Control with MFC")
0
ChiliPequinAuthor Commented:
Thanks jkr,
The site you recommend is very interesting and I will definintely try it sometimes next week.  However, at the moment, I do not launch adobe reader directly from my MFC application.  Rather, I use the ShellExecute command in my MFC application to open a URL which in turns opens the 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
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
Wireless Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.