Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
 To: Eric den Doop
  Where is Eric den Doop?
 Houten
 Netherlands
 Eric den Doop
 Tags
Subject: RE: NavigateTo brings Download dialog
Thread ID: 228421 Message ID: 228430 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Monday, May 18, 2009 8:49:42 PM         
   


> > Colleagues,
> >
> > I am testing this Hyperlink object's NavigateTo method with different file types.
> >
> > Here's what I get:
> >
> >
1. THISFORM.hypCtrl.NavigateTo("SomeFile.PDF")
- opens this PDF in Adobe Reader.
> >
2. THISFORM.hypCtrl.NavigateTo("SomeFile.TXT")
- opens this file in Notepad editor.
> >
3. THISFORM.hypCtrl.NavigateTo("SomeFile.DOC")
or
> >
THISFORM.hypCtrl.NavigateTo("SomeFile.XLS")
- brings up this "Download file" dialog - ?
> >
4. THISFORM.hypCtrl.NavigateTo("SomeFile.MSG")
that is saved MS Outlook's E-Mail message - opens nothing, neither goes anywhere, jsut like nothing's happened.
> >
> > Where am I to look to find what settings need to be changed in order to suppress this "Download" dialog for cases 2 and 3, and to force the MS Outlook into opening an MSG file in a separate, message viewing window (like it does when you double-click on an item in the messages' list)?
> >
> > TIA!
> >
> > Regards,
> >
> > Ilya
>
>
> Hi Ilya,
>
> did you try the ShellExecute() API?
> --
> Eric den Doop
> www.foxite.com - The Home Of The Visual FoxPro Experts

Hi Eric,

ShellExecute will work (it has).

I am just wondering if I can use Hyperlink control for MS Office files' formats.

Regards,

Ilya

ENTIRE THREAD

NavigateTo brings Download dialog Posted by Ilya Rabyy @ 5/18/2009 7:47:44 PM
RE: NavigateTo brings Download dialog Posted by Eric den Doop @ 5/18/2009 8:45:03 PM
RE: NavigateTo brings Download dialog Posted by Ilya Rabyy @ 5/18/2009 8:49:42 PM
RE: NavigateTo brings Download dialog Posted by Yuri Rubinov @ 5/18/2009 9:07:42 PM
RE: NavigateTo brings Download dialog Posted by Ilya Rabyy @ 5/18/2009 9:14:02 PM
RE: NavigateTo brings Download dialog Posted by Chad Lee @ 5/18/2009 9:37:30 PM
RE: NavigateTo brings Download dialog Posted by Ilya Rabyy @ 5/18/2009 9:51:44 PM