Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

launch a .DOC file using Winword.

 
shashikant nagavarapu
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi All,
Currently I am working on an application which requires me to launch a file using its default Application viewer. For eg a doc file with Winword, txt file
with notepad etc. How would I identify such an application and launch a file with that application from an applet.

Any examples would be great. Thanks

Regards
Shashikant
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where are those files located - on the client, or on the server?

If they're on the client, it will likely involve calling Runtime.exec(). The applet will need to be signed or the local security policy adjusted to allow it to do that.
 
shashikant nagavarapu
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The files would be downloaded to the client system(signed applet) and then the file based on its extension has to be launched using the default application of the file type , installed in the client machine. I was wondering as this would be possible using the help of windows registry. (At present this needs to work only on windows platform).

Any suggestions and samples would be appreciated.

Thanks
Shashikant
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic