BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Word and Adobe Reader : FAQ

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Ed
Guest





PostPosted: Fri Apr 20, 2007 8:12 am    Post subject: Word and Adobe Reader : FAQ Reply with quote



Does anybody have a code snippet I could use to activate Word (with
"Help.doc") and Adobe Reader (with "Help.pdf") within a Delphi 2005 Win32
application.

Ed
Back to top
Marc Rohloff [TeamB]
Guest





PostPosted: Sat Apr 21, 2007 4:24 am    Post subject: Re: Word and Adobe Reader : FAQ Reply with quote



On Fri, 20 Apr 2007 14:49:32 +1000, Ed wrote:

Quote:
Does anybody have a code snippet I could use to activate Word (with
"Help.doc") and Adobe Reader (with "Help.pdf") within a Delphi 2005 Win32
application.

The simplest is to just call
shellexecute(..., pchar('help.pdf'), ...)

--
Marc Rohloff [TeamB]
marc -at- marc rohloff -dot- com
Back to top
Mike Shkolnik
Guest





PostPosted: Sat Apr 21, 2007 3:42 pm    Post subject: Re: Word and Adobe Reader : FAQ Reply with quote



Use the TOLEContainer component and open your file using
CreateObjectFromFile method

--
With best regards, Mike Shkolnik
Scalabium Software
http://www.scalabium.com
mshkolnik (AT) scalabium (DOT) com

"Ed" <EdwinGrimshaw (AT) bigpond (DOT) com> wrote in message
news:4628466e$1 (AT) newsgroups (DOT) borland.com...
Quote:
Does anybody have a code snippet I could use to activate Word (with
"Help.doc") and Adobe Reader (with "Help.pdf") within a Delphi 2005 Win32
application.

Ed

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.