Page 1 of 1

Open PDF file in Acrobat Reader

Posted: Mon Apr 11, 2005 5:37 pm
by mispunt
I need to open a PDF file in Acrobat Reader when pushing on a button (on Windows with wxWidgets). I've searched, but couldn't find how I could open other programs..
Any hints?

Posted: Mon Apr 11, 2005 6:01 pm
by ddaeschl
I think you could use a combination of wxMimeTypesManager (wxMimeTypesManager::GetFileTypeFromExtension) and/or wxFileType to retrieve the application that should open a given mime type (such as a pdf doc) for whatever operating system you are on, and then launch that program.

Posted: Mon Apr 11, 2005 6:46 pm
by mispunt
Perhaps it is a stupid quetion, but HOW do I launch that program?

Posted: Mon Apr 11, 2005 8:30 pm
by ddaeschl
Check out wxExecute (::wxExecute) for information on launching applications.

And always remember that the only stupid question is the one you don't ask.

:)

Posted: Mon Apr 11, 2005 9:31 pm
by mispunt
ddaeschl wrote:Check out wxExecute (::wxExecute) for information on launching applications.

And always remember that the only stupid question is the one you don't ask.

:)
It works, thanks... Now I only need to view a word document inside the program... :lol: