Ed
Sat Feb 26 04:00:59 CST 2005
Hi Sergio,
The file extensions and associated apps are a Windows thing. You can set
those in the Windows Explorer, Tools, Folder Options, File Types. That's
where the default Sharepoint Opendocuments looks, at least that's what I
understand from the docs. So assuming you have set this on the workstation,
you should be able to use the default OpenDocuments and not have to write
your own.
HTH,
Ed
"Sergio Otoya" <sergio@winapp.com.au> wrote in message
news:3392f577.0502252006.2d806309@posting.google.com...
> Hi Ed,
>
> Thanks for that information. I have had a read of that. However, the
> problem is still on how to determine which application to use for the
> specified file extension.
>
> I have been playing with:
>
> ShellExecute(0, "Open", sPath, 0, 0, SW_SHOWNORM)
>
> But everytime i pass a
http:// address to it, it opens it in IE not in
> picture manager or notepad or any other application associated with
> the file extension.
>
> would you know of a .net function or windows API where i can open the
> file in its associated application. Inside this activex control that
> exposes the opendocument method?.
>
> Thanks.
>
>
> "Ed Richard" <Ed@_XXX_WSS-Ed.nl> wrote in message
> news:<OWej58wGFHA.3316@TK2MSFTNGP14.phx.gbl>...
>> Sergio, have you looked at this:
>>
>>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/tscamlovDOCICON_SV01084508.asp
>>
>> If you change the definition and provide your own "Editing application"
>> by
>> installing an ActiveX that adheres to the interface Sharepoint wants you
>> should be able to do this. I haven't done it myself, but I was looking at
>> these articles in the SDK for similar options.
>> Here's more:
>>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/tsptAddingDocumentTypeIcon_SV01068572.asp
>>
>> HTH,
>> Ed Richard
>>
>>
>> "Sergio Otoya" <sergio@winapp.com.au> wrote in message
>> news:3392f577.0502241529.1ef7a0a1@posting.google.com...
>> > Hi all,
>> >
>> > I have a client that wants to open jpg and gif files in the
>> > application that has been associated to the file extension through
>> > windows.
>> >
>> > for example in this instance this particular client uses a special
>> > viewer for zooming in to the images and performing other tasks. It is
>> > webdav compliant, that is, it can open files from a http location.
>> >
>> > However, when the users click the jpg, gif and other extensions from
>> > the portal, they seem to be going to a preview mode within internet
>> > explorer.
>> >
>> > Is this possible out of the box?. Is there something that i would need
>> > to configure in windows or in sharepoint. I know there is a file in
>> > sharepoint that allows you to specify an application for a file type,
>> > but that is at the server level so that means that every user will get
>> > that by default. I need a solution where each user can decide what
>> > application the file is opened with.
>> >
>> > I would appreciate any help.
>> >
>> > thanks in advance.
>> >
>> > Sergio