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 

Opening a attachment.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Salvador Huertas
Guest





PostPosted: Fri Mar 18, 2005 8:33 am    Post subject: Opening a attachment. Reply with quote



Hello friends,
I can open a IdMessage from a file reading it with the function
"Loadfromfile", but, how can I open one attachment file with the default
windows program assigned?. I would like doing a double click uppon a *.pdf
file and that the Acrobat Reader start running it.

Thanks in advance!!
Salvador Huertas.



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Mar 18, 2005 9:10 am    Post subject: Re: Opening a attachment. Reply with quote




"Salvador Huertas" <none@none> wrote


Quote:
how can I open one attachment file with the default windows program
assigned?


You need to first save the attachment to a file, and then you can pass the
filename to the Win32 API ShellExecute() function.


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock 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.