"David W. Fenton" <dXXXfenton@bway.net.invalid> wrote in message news:<Xns952DCC74CCDEBdfentonbwaynetinvali@24.168. 128.78>...[color=blue]
> Tony Toews <ttoews@telusplanet.net> wrote in
> news:2ljtf0d0v5s9dritalgr4os1icm7hbpf7a@4ax.com:
>[color=green]
> >
sindle@ensco.com (Rob) wrote:
> >[color=darkred]
> >>I have an Access application that allows users to open up certain
> >>files from within Access (.doc files with automation, .pdf's with
> >>a pdf viewing form). Other formats, we want to use Internet
> >>Explorer to show, using a plug-in).
> >>THis works fine as long as they have the plug-in installed. If
> >>they don't have the plug-in, when I try to open the file with IE,
> >>it gives the old "Would you like to OPEN this file or SAVE it to
> >>disk?" and it displays the full path to the file. We want to hide
> >>the location of the files, so we either need to eliminate that
> >>piece of the dialog box, or don't allow the dialog to pop up at
> >>all. I guess if we could test to see whether or not they have a
> >>valid "file association" in windows for the filetype they are
> >>trying to open, we could provide our own message about loading the
> >>plug-in and then NOT show the dialog to open/save.[/color]
> >
> > I know there are API calls for determining what file extensions
> > belong to what programs. I just saw a title to an article at
> > vbnet.mvps.org yesterday.[/color]
>
> I don't know the APIs. But maybe delving into the ShellExecute code
> on the Access web might give some clues.
>
> Then again, maybe not, as it's probably using the native API that
> does all the determination of the application to load in its
> internal workings.
>
> Then again, just Googling a bit, I came up with this about
> ShellExecute:
>
>
http://www.mentalis.org/apilist/ShellExecute.shtml
>
> And that has an error code for no file association.
>[color=green]
> > Presumably there is an API call for IE as well. If you don't get
> > But you'd have to do some digging. I'd suggest starting at
> > groups.google.com if you don't get an answer here.[/color][/color]
[color=blue]
>
> Why program to IE, a browser that is no longer in development, and
> for which there will be no more updates independent of OS service
> packs, when you could handle the problem in a way that makes your
> solution browser-agnostic?[/color]
Thanks to you both for your help. I found EXACTLY what I wanted at
the Access Web at
http://www.mvps.org/access/modules/mdl0013.htm
Code courtesy of Dev Ashish.
Thanks!
As far as using IE, is it going away? I just used it because I could
open a variety of files with it (some via a plug-in). How could I
allow users to open a file (from inside my app) of unknown file-type,
when I don't know if the user will have an app available to open it?
(making my app more browser-agnostic)
Anyway, thanks for your help.